0
/ 10
For function sumtok
, write the missing recursive call. This function returns the sum of the values from 1 to k
. Think of it as Sum up To...
For function sumtok
, write the missing recursive call.
This function returns the sum of the values from 1 to
k
. Think of it as Sum up To K.
Examples:
sumtok(5) -> 15
Your feedback will appear here when you check your answer.