GATE CSE
First time here? Checkout the FAQ!
x
0 votes
66 views
double foo(int n)

{

int i;

double sum;

if(n == 0)

{

return 1.0;

}

else

{ sum = 0.0;

for(i = 0; i < n; i++)

{

sum += foo(i);

}

return sum;

}

}

asked in Algorithms by Junior (927 points)   | 66 views

1 Answer

0 votes
answered by Active (1.3k points)  

Related questions

+2 votes
3 answers
1
asked in Algorithms by admin Active (2.2k points)   | 298 views
+2 votes
1 answer
2
asked in Algorithms by Kapil Veteran (47.6k points)   | 157 views
+1 vote
2 answers
3


Top Users Jul 2017
  1. Bikram

    3960 Points

  2. manu00x

    2464 Points

  3. Debashish Deka

    1848 Points

  4. joshi_nitish

    1654 Points

  5. Arjun

    1290 Points

  6. Hemant Parihar

    1184 Points

  7. Arnab Bhadra

    1100 Points

  8. Shubhanshu

    1052 Points

  9. Ahwan

    900 Points

  10. rahul sharma 5

    702 Points


24,018 questions
30,955 answers
70,327 comments
29,337 users