text: print("Enter the number of rows: ")
  n = int(input())
  spaces = n
  counter = 1
  for i in range(0, n):
      for k in range(0, spaces):
          print(" ", end=" ")
      for j in range(0, counter):
          if i % 2 != 0:
              print("*", end=" ")
          else:
              print("#", end=" ")
      counter = counter + 1
      print()
      spaces = spaces - 1
  