CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Recursive Fibonacci

C# code walkthrough · Question 21
hardRecursion

Code

Read carefully. What does this print?
1int Fib(int n) => n < 2 ? n : Fib(n - 1) + Fib(n - 2);
2Console.WriteLine(Fib(7));

Your answer