Subham DasJun 6, 20191 min read#7 Equilateral Triangle with space insiden=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()
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()
Comments