Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int Fib(int x)
- {
- if (x == 0) return 1;
- if (x == 1) return 1;
- else return Fib(x-1) + Fib(x-2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement