I solved this problem this way. int inc(int a) { return ++a; } #include <stdio.h> int sum(int a,int b) { if(a>=b) return 0;...
#include <stdio.h> #include <conio.h> int sum(int a,int b) { if(a>=b) return 0; return a+sum(++a,b); } int main() { int i,j,r=0;...
Actually I removed the result altogether ......... still the same result.
I have been brushing up on recursion. I have a typical problem here. I want to sum up all the numbers between two bounds.The end bounds are...
Separate names with a comma.