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()
Comments