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

6th May 2020, 1:10 AM
Saaquib Motiwala
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 "
6th May 2020, 1:24 AM
Abhay
Abhay - avatar
+ 1
"else if" not the "if else"
6th May 2020, 2:25 AM
Dasarath Singh
0
Dasarath Singh yes "else if"
6th May 2020, 2:31 AM
BroFar
BroFar - avatar
0
Ok i have changed it but when the input is 5 it prints "I got this" instead of "Help me Batman"
6th May 2020, 2:33 AM
Saaquib Motiwala
0
Saaquib Motiwala gave you the code line by line based on your code...
6th May 2020, 2:43 AM
BroFar
BroFar - avatar