Python Program to Print First 10 Natural Numbers in Reverse

Write a Python program to print first 10 natural numbers in reverse order using for loop.

print("====The First 10 Natural Numbers in Reverse====")

for i in range(10, 0, -1):
    print(i)
Python Program to Print First 10 Natural Numbers in Reverse

This Python program displays the first 10 natural numbers in reverse or descending order using a while loop.

print("====The First 10 Natural Numbers in Reverse====")
i = 10

while(i >= 1):
    print(i)
    i = i - 1
====The First 10 Natural Numbers in Reverse====
10
9
8
7
6
5
4
3
2
1

About Suresh

Suresh is the founder of TutorialGateway and a freelance software developer. He specialized in Designing and Developing Windows and Web applications. The experience he gained in Programming and BI integration, and reporting tools translates into this blog. You can find him on Facebook or Twitter.