
Implement a recursive function that returns the sum of every integer from 1 to n, with the sum for 0 defined as 0.
sum_to_n(5)15sum_to_n(0)0sum_to_n(65535)2147450880sum_to_n(-4)-1sum_to_n.c
Run the tests to grade your code
Implement a recursive function that returns the sum of every integer from 1 to n, with the sum for 0 defined as 0.
sum_to_n(5)15sum_to_n(0)0sum_to_n(65535)2147450880sum_to_n(-4)-1sum_to_n.c
Run the tests to grade your code
Memory will appear here