0
Code coach error in Gotham using C.
So i am new to code coach , this is my code #include <stdio.h> int main() { int criminals; printf("enter number of criminals"); scanf("%d",&criminals); if(criminals < 5){ printf("I got this!"); } if else(criminals >= 5 && criminals <= 10){ printf("Help me Batman"); } if else(criminals > 10) { printf("Good Luck out there!"); } return 0; } When the code is executed two error appears, pls help
5 Antworten
+ 1
https://code.sololearn.com/clo4berc5e2n/?ref=app
Ur bug is that u used" if else " which is wrong
Correct one is reverse of yohr i.e., "else if "
+ 1
"else if" not the "if else"
0
Dasarath Singh yes "else if"
0
Ok i have changed it but when the input is 5 it prints "I got this" instead of "Help me Batman"
0
Saaquib Motiwala gave you the code line by line based on your code...