top of page
Subham Das

#12 Rhombus

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


#Pattern 12 print('(12)') for i in range (1,n+1) : for j in range (1,n-i+1) : print(end = " ") for j in range (i,0,-1) : print("*", end = "") for j in range (i,1,-1) : print("*", end = "") print() for i in range (n+1,1,-1) : for j in range (0,n+1-i) : print(end = " ") for j in range (1,i) : print('*', end="") for j in range (i,2,-1) : print('*',end = "") print() print()


14 views0 comments

Recent Posts

See All

Bình luận


logo12.PNG
bottom of page