5
54
543
5432
54321
for i in range(5,0,-1):
for j in range(5,i-1,-1):
print(j,end='')
print()
Output:
No comments:
Post a Comment