Computer Science, asked by rajatvishw2003, 5 months ago

5 4 3 2 1
5 4 3 2
5 4 3
5 4
5
This pattern is how written in python using nested for loop

Answers

Answered by harika555
1

Answer:

Explanation:

n=int(input("enter number"))     -->in the given question n=5

for i in range(0,n):

   for j in range(0,n-i):

       print(n-j, end=" ")

   print("\n")

           

Similar questions