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