0
Help me in Gotham City question
In code coach there is a Gotham City question can someone help me in how to do it in C++? I did something like this: #include <iostream> using namespace std; int main() { int criminals; cin>>criminals; if(criminals<5) {cout<<"I got this!"<<endl;} if(criminals >=5; criminals <=10) {cout<<"Help me Batman"<<endl;} if(criminals> 10) {cout<<"Good luck out there!"<<endl;} return 0;
4 Antworten
+ 2
Sampraad Das
1. Change the last two "if" to "else if"
2. The second condition must be (criminals >= 5 && criminals <= 10)
3. And for the last statement:
"Good Luck out there!" instead of "Good luck out there!"
+ 1
Sampraad Das Post your attempt first to get help from the community ..
+ 1
《 Nicko12 》 It worked thanks a lot 😊😊
0
Alphin K Sajan I edited now check please