34.WAP to display following pattern
CODE:
p=39
n=int(input("How many rows\n"))
for i in range(1,n+1):
for k in range(1,p+1):
print(end=" ")
for j in range(1,i+1):
print("* ",end=" ")
p=p-1
print()
OUTPUT:
How many rows
5
*
* *
* * *
* * * *
* * * * *
x
Comments
Post a Comment