Computer Science, asked by razlan3634, 10 months ago

Write a program to print a pattern as :
1
21
321
4321
54321

Answers

Answered by allysia
1

Answer:

Here you go,

\\\tt n=int(in put("Enter\ the\ no\ of\ rows: ") \\\tt for\ i\ in\ range(n+1): \\\tt{\qquad    for\ j\ in\ range(i+1,0,-1):} \\\tt{\qquad {\qquad        print(j, end="")}} \\\tt  {\qquad   print() }

Attachment for satisfaction:

Attachments:
Similar questions