TRIANGULAR PATTERN #3



looks great, right?
now how to do it, believe me guys its easy. I suggest you to first try it yourself then look down the answer.



#code
m=int(input("enter the number "))
k=0
x=m
while k<=x:
    for i in range(0,m):
        print(" ",end=" ")
    for j in range(0,k):
        print("#",end=" ")
    k+=1
    m-=1
    print()



Comments

Popular Posts