Python Program To Generate Pattern 47

Python Program To Generate Pattern 47

Write Python Program To Generate Pattern 47

# Write Python Program To Generate Pattern 47

n = 3
i = 1

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

Output:

3 
2 3 
1 2 3