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()
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
Post a Comment