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

Recursive Factorial

C# code walkthrough · Question 17
mediumRecursion

Code

Read carefully. What does this print?
1int Fact(int n) => n <= 1 ? 1 : n * Fact(n - 1);
2Console.WriteLine(Fact(5));

Your answer