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.
3 Answers
0
"Help me Batman" should also be printed when c == 5 or c == 10.
0
CarrieForle not working, would be great if you can write the whole code, won't take more than 2 min
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.