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