Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@kanchasohail can you refine your query and use search engine instead? It's the most crucial skill in our century. It will save you lots of pain.
We don't want this to be a question-answer website, but have valuable discussions, not trivialities like this.
https://lmddgtfy.net//... -
@GeorgeBool will you please execute the problem in your c terminal and check what is the exact problem??
#include <stdio.h>
// Please help me I am unable to get the problem
int main()
{ char a;
printf("which subject you have passed?\n 1.Maths\n 2.Science\n 3.Both maths and science\n");
scanf("%d", &a);
if (a=1) {
printf("You will get 20 rupees");}
else if (a=2) {
printf("You will get 20 rupees");}
else (a=3) {
printf("You will get 50 rupees");}
}
question