Showing posts with label sum of entered number. Show all posts
Showing posts with label sum of entered number. Show all posts

Saturday, March 1, 2014

To find the sum of the entered number using function only


In this page I have written the program to find the sum of the entered number using function but not recursion:
It can be done in this way:

To find the sum of the number entered using recursive function


In this page I have written the program to find the sum of the number entered using function. Lets take an example to be clear how the program works.