I thought I solved it correctly. Is there a problem with my code?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I thought I solved it correctly. Is there a problem with my code??

#include <iostream> using namespace std; int main() { int criminals; cin>>criminals; if(criminals > 10){ cout<<"Good luck out there!"; } else if(criminals >= 5){ cout<<"Help me Batman"; } else{ cout<<"I got this!"; } return 0; } https://www.sololearn.com/coach/41?ref=app

11th Aug 2020, 8:10 AM
Jayp Bazar
Jayp Bazar - avatar
3 Answers
+ 2
Good Luck out there!
11th Aug 2020, 8:43 AM
The future is now thanks to science
The future is now thanks to science - avatar
+ 3
Check the phrases again, you misspelled one of them, that's all. The logic itself is fine.
11th Aug 2020, 8:41 AM
Shadow
Shadow - avatar
0
Why you are asking ? Didn't your code work?
11th Aug 2020, 8:38 AM
The future is now thanks to science
The future is now thanks to science - avatar