top of page
Subham Das

#14 Hexagon

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


#Pattern 14 print('(14)') for i in range (1,3) : for j in range (1,6) : if j+i == 5 or j-i == 3 : print('*', end = "") else : print(end = " ") print() for i in range (1,4) : for j in range (1,6) : if j%2 == 0 : print(end =" ") else : print('*', end = " ") print() for i in range (1,3) : for j in range (1,6) : if j-i == 1 or j+i == 5 : print('*', end = " ") else : print(end = " ") print() print()



11 views0 comments

Recent Posts

See All

Comments


logo12.PNG
bottom of page