top of page
Subham Das

#15 Triangle

n=int(input("Enter Number :"))


#Pattern 15 print('(15)') for i in range (1,5) : for j in range (1,8) : if j+i == 5 or j-i == 3 : print(1,end = " ") elif i == 3 and j%4 == 0 : print(i-1,end = " ") elif i == 4 and (j == 3 or j == 5) : print(i-1, end = " ") else : print(end = " ") print() print()



29 views0 comments

Recent Posts

See All

コメント


logo12.PNG
bottom of page