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
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
Social Sciences,
3 months ago
Biology,
3 months ago
Computer Science,
3 months ago
Science,
8 months ago