edited by
3,169 views

1 Answer

Best answer
11 votes
11 votes
Here f(1)=1

        f(2)=2

f(4) = f(3)*f(2)+f(1)

f(3)=f(2)*f(1)+f(0) =2*1+0=2

f(4)=2*2+1=5
selected by
Answer:

Related questions

28 votes
28 votes
3 answers
1
Kathleen asked Sep 18, 2014
14,235 views
Consider the following C function:int f(int n) { static int i = 1; if(n >= 5) return n; n = n+i; i++; return f(n); }The value returned by $f(1)$ is:$5$$6$$7$$8$
1 votes
1 votes
2 answers
2
soujanyareddy13 asked Jan 29, 2021
590 views
Consider the following program. Assume that $x$ and $y$ are integers.f(x, y) { if (y != 0) return (x * f(x,y-1)); else return 1; }What is $f(6,3)?$$243$$729$$125$$216$
0 votes
0 votes
2 answers
3
18 votes
18 votes
2 answers
4