Hayyhayy
3/14/2020 - 7:24 AM

Chapter5 #while# statement

While n is greater than 0, display the value of n and then reduce the value of n by 1. When you get to 0, exit the statement and display the word Blastoff!

n = 5
while n > 0:
    print(n)
    n = n - 1
print('Blastoff!')
n = 10
while True:
    Print(n, end=' ')
    n = n - 1
print('Done!')