Answer to Question #230032 in Python for Roti

Question #230032
Write a code that reads a number from the user and prints backwards from the number to 1. Use a loop to solve the problem.
1
Expert's answer
2021-08-26T18:59:35-0400
n = int(input())


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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS