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