Menu Close

Program to calculate sum of first 50 natural numbers using recursive function.

Problem Analysis:

The problem is to calculate the sum of first 50 natural numbers using recursive function.

Code:

https://gist.github.com/programmingfaster0226/053b0939adc49ed391b183b448a39718

 

Outputs:

the sum of first 50 natural numbers is 1275.

 

Leave a Reply

Your email address will not be published. Required fields are marked *