var=int(input("Enter number:"))
for i in reversed(range(1,var+1)):
print(i)
$ python userinput.py
Enter number:10
10
9
8
7
6
5
4
3
2
1
var=int(input("Enter number:"))
for i in reversed(range(1,var+1)):
print(i)
$ python userinput.py
Enter number:10
10
9
8
7
6
5
4
3
2
1
0 comments:
Post a Comment