Interview Bootcamp
Ask Author
Back to course home

0% completed

Vote For New Content
Solution: Basic Sum

Problem Statement

Calculate the Sum of the First N Natural Numbers Using a Recursive Approach.

The sum of first N natural numbers is equal to N + (N-1) + (N-2) + ... + (3) + (2) + (1). The following table shows a sample input/output description table:

| Input (s) | Output (s) | Explanation |

.....

.....

.....

Like the course? Get enrolled and start learning!