0

Could you just check my solution of this code coach problem, I think it is right:

https://www.sololearn.com/coach/41?ref=app I solved it like this : #include <stdio.h> int main() { int c; printf("enter the total criminals present\n"); scanf("%d", &c); if(c<5) { printf("I got this!"); } else if(c<10 && c>5) { printf("Help me Batman"); } else { printf("Good Luck out there!"); } return 0; } Still it is showing that this is the wrong solution.

20th Sep 2020, 6:07 AM
Harshit Nema
Harshit Nema - avatar
3 ответов
0
"Help me Batman" should also be printed when c == 5 or c == 10.
20th Sep 2020, 6:13 AM
你知道規則,我也是
你知道規則,我也是 - avatar
0
CarrieForle not working, would be great if you can write the whole code, won't take more than 2 min
20th Sep 2020, 6:55 AM
Harshit Nema
Harshit Nema - avatar
0
I want you to code it yourself with the hints. Takes an integer input, and do the following if the input is: 1-4 prints "I got this!" 5-10 prints "Help me Batman" above 11 prints "Good Luck out there!" And don't print other things except messages above.
20th Sep 2020, 7:49 AM
你知道規則,我也是
你知道規則,我也是 - avatar