input: Write a python function to calculate the sum of consecutive numbers starting at 0.
  assert sum_consecutive(10) == 55
  assert sum_consecutive(5) == 15
  assert sum_consecutive(0) == 0
output: def sum_consecutive(n):
      return n * (n + 1) // 2