Wednesday 8 July 2020

Python-6


Write the output of the following Program.


s=4
m=2
for i in range(1,6):
    for j in range(1,s):
        print(end="  ")
    for k in range(1,m):
        print(k,end=" ")
    print(end="\n")
    s=s-1
    m=m+2

No comments:

Post a Comment