<reponame>rohitd3/csp-python
def build_tree(height):
  i = 1
  while i <= height:
    print(" " * (height - i) + "* " * i)
    #creates the spacing before each star
    i = i + 1
  print(" " * (height - 2) + "|||")
    

def treefunc():
  height = int(input("Enter height: "))
  build_tree(height)
def build_tree(height):
  i = 1
  while i <= height:
    print(" " * (height - i) + "* " * i)
    #creates the spacing before each star
    i = i + 1
  print(" " * (height - 2) + "|||")
    

def treefunc():
  height = int(input("Enter height: "))
  build_tree(height)
#creates the spacing before each star