MJP

architect • coder • strategist • musician • educator

Sum Integers

Sum Integers

Instructions

Implement a recursive function, sum_int, that sums the integers 1 through n.

Example

sum_int(1) # 1
sum_int(4) # 1 + 2 + 3 + 4 = 10
sum_int(10) # 55