input: Write a function to calculate the sum of all numbers up to a given number.
  assert sum_all_numbers(10) == 55
  assert sum_all_numbers(100) == 5050
  assert sum_all_numbers(0) == 0
output: def sum_all_numbers(n):
      return n * (n + 1) // 2