Answer to Question #241046 in Python for saksham

Question #241046
Reverse number pattern
Write a python program how to display the pattern of descending order of numbers
1
Expert's answer
2021-09-25T10:02:48-0400
rows = 5
# reverse loop
for i in range(rows, 0, -1):
    num = i
    for j in range(0, i):
        print(num, end=' ')
    print("\r")

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