Write sum_to(n) that adds the numbers 1 to n using a for loop (0 for n < 1).
sum_to(n)
for
sum_to(5) → 15
sum_to(0) → 0
Submit runs 5 tests, including hidden edge cases.
Run your code to see the output here.