C Program To Find Sum of Natural Numbers Using Recursion

preview_player
Показать описание

Write a recursive function to obtain the running sum of first 25 natural numbers.

1 + 2 + 3 + 4 + 5 + .... + 23 + 24 + 25 = 325

Find Sum of Natural Numbers Using Recursion – Take input from user

C Programming Interview / Viva Q&A List

C Programming: Beginner To Advance To Expert
Рекомендации по теме
Комментарии
Автор

I've seen many videos on this topic repeatedly but didn't get anything.
But here I understand the whole program easily.
Once again thank you👍

vaibhavchauhan
Автор

that was best video on recursion. thanks a lot.

iqranthing
Автор

That was the simplest explanation of Recursion I have seen thanks but I guess I'll need to dig more

theshadowunity
Автор

If we don't use if else then why this code doesn't exicuted? Anyone can explain??

dipanwitakhamaru