Python Program To Generate Pattern 37

Python Program To Generate Pattern 37

Write Python Program To Generate Pattern 37

# Write Python Program To Generate Pattern 37

i = 1
n = 3

while(i <= n):
    
    j = n - i + 1
    while(j >= 1):
        print(j, end = ' ')
        j -= 1
    print()
    i += 1
    

Output:

3 2 1 
2 1 
1