Python Program to Print First n Numbers in Reverse Order using For loop

Python Program to Print First n Numbers in Reverse Order using For loop

Write Python Program to Print First n Numbers in Reverse Order using For loop

# Write Python Program to Print First n Numbers in Reverse Order using For loop

n = 10
for i in range(n, 0, -1):
    print(i, end = ' ')

Output:

0 9 8 7 6 5 4 3 2 1