Ass-15 CLP

PHOTO EMBED

Thu Aug 08 2024 22:53:05 GMT+0000 (Coordinated Universal Time)

Saved by @k_m_s_avinash6

b=int(input())
a=int(input())
for i in range(1,a+1):
    i=a+1-i
    s=""
    ls=" "*(a-i)
    for j in range(1,i+1):
        if i==a:
            s=s+str(b)+" "
        else:
            if j==1:
                s=s+str(b)+" "
            elif 1<j<i:
                s=s+"  "
            else:
                s=s+str(b)
        b+=1
    print(ls+s)
content_copyCOPY