Write a program to print reverse counting from 10 to 1 using while loop in Python

write a program in python to print reverse counting from 10 to 1 using while loop.

In this article, we will write a program in python to print reverse counting from 10 to 1 using while loop.

Program:

i = 10
while i >= 1:
    print(i)
    i = i-1

Output:

10
9
8
7
6
5
4
3
2
1