number = int(input("Please Enter any Number: "))
i = number
print("List of Natural Numbers from {0} to 1 in Reverse Order : ".format(number))
while ( i >= 1):
print (i, end = ' ')
i = i - 1
output:
Please Enter any Number: 10
List of Natural Numbers from 10 to 1 in Reverse Order :
10 9 8 7 6 5 4 3 2 1
0 Comments