Subham DasJun 6, 20191 min read#10 Equilateral Triangle without space n=int(input("Enter Number :")) #Pattern 10 print('(10)') 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() print()
n=int(input("Enter Number :")) #Pattern 10 print('(10)') 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() print()
תגובות