1 votes
1
#include <stdio.h>int f(int n){ static int r = 0; if (n <= 0) return 1; r=n; return f(n-1) + r;}int main() { printf("output is %d", f(5)); return 0;}Ou...
0 votes
2
T(K)=5T(K-1)-4T(K-2) with initial condition T(0)=2 and T(1)=3 determine T(10).using recursion i got answer,but can anyone explain above method.
0 votes
3
T(K)=5T(K-1)-4T(K-2) with initial condition T(0)=2 and T(1)=3 determine T(10).using recursion i got answer,but can anyone explain above method.