X267: Recursion Programming Exercise: Cumulative Sum

For function sumtok, write the missing recursive call. This function returns the sum of the values from 1 to k.

Examples:

sumtok(5) -> 15

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.