X278: Recursion Programming Exercise: Add odd positions

For function addodd() write the missing recursive call. This function should return the sum of all postive odd numbers less than or equal to n.

Examples:

addodd(1) -> 1

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.