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

1 Answer

0 votes
answered by Junior (805 points)  

Related questions

+2 votes
3 answers
1
asked in Algorithms by admin Active (2.1k points)   | 249 views
+1 vote
0 answers
2
+1 vote
2 answers
3
asked in Algorithms by neeraj (111 points)   | 145 views
Top Users Jan 2017
  1. Debashish Deka

    8978 Points

  2. sudsho

    5326 Points

  3. Habibkhan

    4798 Points

  4. Bikram

    4676 Points

  5. Vijay Thakur

    4496 Points

  6. saurabh rai

    4222 Points

  7. Arjun

    4216 Points

  8. Sushant Gokhale

    3834 Points

  9. santhoshdevulapally

    3808 Points

  10. Kapil

    3736 Points

Monthly Topper: Rs. 500 gift card

19,229 questions
24,123 answers
53,257 comments
20,323 users