Python Program to Print Natural Numbers in Reverse Order

Python Program to Print Natural Numbers in Reverse Order

How to Print Natural Numbers from 1 to n in Reverse Order by Python? In Python we can print n consecutive Natural Numbers by using Loops. Here in this program we used "while loop" to get our desired output.

Natural Numbers in Reverse Order by Python :



n = int(input('Please Enter any Number : '))

print('Natural Numbers from %d to 1 in Reverse Order : '%n) 

while ( n >= 1):
    print (n)
    n = n - 1


Output :