Notes From CS Undergrad Courses FSU
This project is maintained by awa03
Fibonacci
$$ fib_n=fib_{n-1}+fib_{n-2} $$
int sum(A,n) // finds the sum of n elements
// Recursive Example
int sum(A,n){
if(n==0) return 0;
return sum(A, n-1) + A[n-1];
}
#cpp #code #recursion #functions