top of page
  • Subham Das

#7 Equilateral Triangle with space inside


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


#Pattern 7 print('(07)') k = 2 for i in range (1,n+1) : for j in range (1,n*2) : if j+i == n+1 or j-i == n-1 : print('*', end="") elif i == n and j != k: print('*', end="") k+=2 else : print(end=" ") print() print()




7 views0 comments

Recent Posts

See All
logo12.PNG
bottom of page