input: Write a function to generate a Pascal triangle and print it given the number of rows as input. The function should store the Pascal triangle values in an auxiliary array and print each row with the appropriate number of integers.
  assert PascalTriangle(5)  # Expected output: Should print Pascal's triangle with 5 rows.
  assert PascalTriangle(3)  # Expected output: Should print Pascal's triangle with 3 rows.
  assert PascalTriangle(0)  # Expected output: Should not print anything as there are no rows.
output: def PascalTriangle(n):
      if n == 0:
          return
      triangle = [[1]]
      for i in range(1, n):
          row = [1]
          for j in range(1, i):
              row.append(triangle[i-1][j-1] + triangle[i-1][j])
          row.append(1)
          triangle.append(row)
      for row in triangle:
          print(' '.join(map(str, row)))