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
#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