Python Program To Generate Pattern 36
Write Python Program To Generate Pattern 36
# Write Python Program To Generate Pattern 36 i = 1 n = 3 while(i <= n): k = 1 while(k < i): print(' ', end=' ') k += 1 j = 1 while(j <= n - i + 1): print(j, end = ' ') j += 1 print() i += 1
Output:
1 2 3
1 2
1