- Get link
- X
- Other Apps
- Get link
- X
- Other Apps
a = 11
while 2 <= a:
a -= 1
print(a)
THIS PROGRAM CAN PRINT 10 TO 1 IN PYTHON.
HERE YOU CAN CHANGE THE VALUE OF "a" OR YOU CAN MAKE AN INPUT VARIABLE BY REPLACING a = 11 BY a = input()
SO NOW YOU KNOW HOW TO PRINT REVERSE COUNTING.
a program to print reverse counting from 10 to 1 using while loop in Python
PRINTING FROM 10 TO 1 IN PYTHON 3 LANGUAEG OR PYTHON LANGUAGE
PROGRAMMING
PYTHON
PYTHON3
Location:
Delhi, India
- Get link
- X
- Other Apps
Comments
Post a Comment