+ 1
what is the problem in this code
https://code.sololearn.com/caeL2TR7l1Rc/?ref=app https://code.sololearn.com/caeL2TR7l1Rc/?ref=app
5 odpowiedzi
+ 2
Actually once open the code and see the third case.You had given the semicolon inside the brace.Keep the semicolon outside the brace.Then your program will give you the correct output.
+ 2
In the line luck out there the semicolon should me outside the brace.
+ 2
#include<stdio.h>
int main() {
int noo;
printf("Enter the no of cases\n");
scanf("%d",&noo);
if(noo<5){
printf("I got this!");}
else if(noo>=5&&noo<=10){
printf("Help me Batman");}
else{
printf("Luck out there!");}
return 0;
}
0
thanx everyone ☺☺