function fib(n){
if (n==1) return 1;
else if (n==2) return 2;
else return fib(n-1)+fib(n-2);
}
Submit feedback about this site to: