QuestionQ35

VerifiedFunctions and Exceptions

What output is expected from the following code?

Question Image

Explanation

The function recursively adds each integer from 3 down to 0, so it returns 3 + 2 + 1 + 0, which equals 6.

Community Discussion

No comments yet. Be the first to start the discussion!