Q. Write a program to print the following pattern:


1

21

321

4321

54321


Answer :-

a = "54321"
for i in range (1, 6):
    print (a[-i:])

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post