Why doesn't it print both 3 and 7 if both statements are true? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Why doesn't it print both 3 and 7 if both statements are true?

14th Sep 2016, 5:18 PM
Kirsty Lukas
Kirsty Lukas - avatar
2 Respuestas
+ 1
Because those are nested if, look at the indentation.
14th Sep 2016, 5:50 PM
Zen
Zen - avatar
0
As the first condition is meet,it jumps out of the progress.
29th Sep 2016, 5:24 AM
Henry
Henry - avatar