Problem Analysis:
The problem is to calculate the sum of first 50 natural numbers using recursive function.
Code:
Outputs:
the sum of first 50 natural numbers is 1275.
The problem is to calculate the sum of first 50 natural numbers using recursive function.
the sum of first 50 natural numbers is 1275.