The Factorial Function is a classic interview question. It opens the doors to a discussion about stack overflow (if done recursively) and integer overflow (if the param is too large) as well as discussions around how to handle and catch errors. Here is one way to do it using recursion: static Int64 Factorial...
Continue reading "Factorial Function in C#"