write a program in python
54321
4321
321
21
1
Answers
Answered by
1
Question:-
Write a Python program to display the following pattern.
54321
4321
321
21
1
Program:-
n=int(input("Enter the number of rows: "))
for i in range(n, 0,-1):
for j in range(i, 0,-1):
print(j, end="")
print()
Similar questions