R Program to Sum of Natural Numbers Using Recursion
# Program to find the sum of natural numbers upto n using recursion
calculate_sum()
Output
> calculate_sum(7)
[1] 28
# Program to find the sum of natural numbers upto n using recursion
calculate_sum()
Output
> calculate_sum(7)
[1] 28