CJCoding With Joseph
← Back to Question List
C# Code Walkthrough #17

Recursive Factorial

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