Print Integers - 3
This Program name is Print Integers - 3. Write a Python program to Print Integers - 3, it has two test cases
The below link contains Print Integers - 3 question, explanation and test cases
https://drive.google.com/file/d/12SgeEAOfc8r4kohSyTYdbg2jQ2FqYdNP/view?usp=sharing
We need exact output when the code was run
num = int(input())
for i in range(num, 0, -1):
print(i)
Input 1:
5
Output 1:
5
4
3
2
1
Input 2:
3
Output 2:
3
2
1
Comments
Leave a comment