In My Words
We can also find sum of natural numbers using recursion.getSum(N) = N + getSum(N-1);Here is the loop solution C program sum of natural number
Please comment, if you like the post, you find any mistake or if you have any query.
We can also find sum of natural numbers using recursion.
ReplyDeletegetSum(N) = N + getSum(N-1);
Here is the loop solution C program sum of natural number