Write sum_to(n) that returns 1 + 2 + … + n using a while loop.
sum_to(n)
sum_to(5) → 15
sum_to(0) → 0
Submit runs 4 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.