0

no output

total = 0 age = int(input()) while age > 3 : total += 400 if age < 3 : continue print (total)

15th Feb 2021, 3:59 PM
Chiranjeev Singh
Chiranjeev Singh - avatar
2 ответов
+ 4
Chiranjeev Singh Doens't make sense of if age < 3 because you have already checked while age > 3 so how age could be less than 3.
15th Feb 2021, 4:04 PM
A͢J
A͢J - avatar
+ 3
If age is greater than 3 while loop runs and gets stuck in an infinite loop , maybe you forgot to decrement age inside loop.
15th Feb 2021, 4:02 PM
Abhay
Abhay - avatar