GATE CSE
First time here? Checkout the FAQ!
x
0 votes
45 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 (793 points)   | 45 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)   | 265 views
+2 votes
1 answer
2
asked in Algorithms by Kapil Veteran (42.3k points)   | 112 views
+1 vote
2 answers
3
Top Users Feb 2017
  1. Arjun

    5224 Points

  2. Bikram

    4230 Points

  3. Habibkhan

    3748 Points

  4. Aboveallplayer

    2986 Points

  5. Debashish Deka

    2356 Points

  6. sriv_shubham

    2298 Points

  7. Smriti012

    2142 Points

  8. Arnabi

    1998 Points

  9. sh!va

    1654 Points

  10. mcjoshi

    1628 Points

Monthly Topper: Rs. 500 gift card

20,832 questions
25,986 answers
59,623 comments
22,042 users