input: Write a function to calculate the value of x based on nested loops.
  assert calculate_x() == 50495000
output: def calculate_x():
      x = 0
      for i in range(1, 101):
          for j in range(1, 101):
              x += i * j
      return x