11th Mar 2020, 9:37 PM
lmao
lmao - avatar
5 Answers
+ 5
Put the "else" statepents inside the first "if" statement.
11th Mar 2020, 9:38 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 4
The first if is not false, it is the second if that is false. Which means the else statement will be ignored whatever happened inside the first if. Now let's go inside the first if, you are checking "x>9" which returns false, thus nothing is printed. And as mentioned before, the else statement will be ignored because the first if was already excuted.
11th Mar 2020, 9:45 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 3
The first if catches rather x is true to 4 https://code.sololearn.com/csAkcNWaCMc6/?ref=app
11th Mar 2020, 10:27 PM
BroFar
BroFar - avatar
+ 1
You have used if twice conseucatvly
11th Mar 2020, 10:43 PM
Nature of me
Nature of me - avatar
0
Yes but why does it have no output since the first if is false
11th Mar 2020, 9:42 PM
lmao
lmao - avatar