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