0
[SOLVED] why no output?
x = int(input()) while x <= 1: print(x) x = x - 1
2 Respuestas
+ 3
You may change the condition to x >= 1
+ 3
It depends on what you give as input: if your input is > 0, it will not run at all; if your input is <= 1, it will run infinitely as you decrease x on each iteration