what is the problem in this code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
4 Answers
+ 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.
22nd May 2020, 3:30 AM
Venkatesh
+ 2
In the line luck out there the semicolon should me outside the brace.
22nd May 2020, 3:31 AM
Venkatesh
+ 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; }
22nd May 2020, 4:00 AM
Krid Indu
Krid Indu - avatar
0
thanx everyone ☺☺
22nd May 2020, 4:21 AM
Ankit Nainwal
Ankit Nainwal - avatar