GATE CSE
First time here? Checkout the FAQ!
x
0 votes
59 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 (877 points)   | 59 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)   | 284 views
+2 votes
1 answer
2
asked in Algorithms by Kapil Veteran (47.2k points)   | 145 views
+1 vote
2 answers
3


Top Users May 2017
  1. akash.dinkar12

    3598 Points

  2. pawan kumarln

    2314 Points

  3. Bikram

    1958 Points

  4. Arjun

    1942 Points

  5. sh!va

    1682 Points

  6. Debashish Deka

    1296 Points

  7. Devshree Dubey

    1282 Points

  8. Arunav Khare

    1122 Points

  9. Angkit

    1072 Points

  10. LeenSharma

    1028 Points

Monthly Topper: Rs. 500 gift card
Top Users 2017 May 29 - Jun 04
  1. Arjun

    292 Points

  2. Arunav Khare

    246 Points

  3. Rupendra Choudhary

    116 Points

  4. Arnab Bhadra

    116 Points

  5. pC

    110 Points


22,912 questions
29,253 answers
65,411 comments
27,750 users