0

How is this if statement wrong?

#include <iostream> using namespace std; int main() { int HP; cin >> HP; cout << "Enter your current HP:" << endl; if (HP >= 75) { if (HP <= 100) { cout << "Your HP is very high!"; } } } return 0;

13th Oct 2017, 8:49 AM
Nisshomaru
Nisshomaru - avatar
3 Answers
+ 4
I think the question should be: "Why is return 0 outside main?"
13th Oct 2017, 8:51 AM
Dennis
Dennis - avatar
+ 1
ahh yea just noticed lmao
13th Oct 2017, 8:52 AM
Nisshomaru
Nisshomaru - avatar
0
thank u
13th Oct 2017, 8:52 AM
Nisshomaru
Nisshomaru - avatar