int fibonacci(int n){ int a = 1; int b = 1; int pocket; int i; for (i=2; i<=n; i++){ pocket = a; a = b; b = b + pocket; } return b; }