answersLogoWhite

0

int sum(n)

{

if (n==0)

return 0;

else

return n+sum(n-1);

}

User Avatar

Wiki User

13y ago

Still curious? Ask our experts.

Chat with our AI personalities

ReneRene
Change my mind. I dare you.
Chat with Rene
BeauBeau
You're doing better than you think!
Chat with Beau
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan

Add your answer:

Earn +20 pts
Q: Program to find sum of n numbers using recursion function?
Write your answer...
Submit
Still have questions?
magnify glass
imp