GATE CSE
First time here? Checkout the FAQ!
x
0 votes
53 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 (839 points)   | 53 views

1 Answer

0 votes
answered by Active (1.2k points)  

Related questions

+2 votes
3 answers
1
asked in Algorithms by admin Active (2.1k points)   | 270 views
+2 votes
1 answer
2
asked in Algorithms by Kapil Veteran (45k points)   | 136 views
+1 vote
2 answers
3


Top Users Mar 2017
  1. rude

    5246 Points

  2. sh!va

    3054 Points

  3. Rahul Jain25

    2920 Points

  4. Kapil

    2732 Points

  5. Debashish Deka

    2602 Points

  6. 2018

    1574 Points

  7. Vignesh Sekar

    1440 Points

  8. Bikram

    1432 Points

  9. Akriti sood

    1420 Points

  10. Sanjay Sharma

    1128 Points

Monthly Topper: Rs. 500 gift card

21,553 questions
26,902 answers
61,258 comments
23,269 users