12345
23455
34555
45555
55555









i=1
k=5
while(i<=5):
    j=i
    while(j<=5):
        print(j,sep="",end="")
        j=j+1
    m=1
    k=5
    while(m<i):
        print(k,sep="",end="")
        m=m+1
    i=i+1
    print()











 

 

Comments

Popular posts from this blog

CODE to print rhombus in python

printing triangle pattern using for loops in c++

CODE to Print a square(hollow) in python