1.

Write a program using while loop that asks the user for a number, and prints a countdown from that number to zero.

Answer»

num = input (“Enter the number”)

while (num > = 1) :

print (“num = “, num)

num – num-1

print (“Finish”)



Discussion

No Comment Found