A simple C# console application that calculates the factorial of a number entered by the user.
The program uses a separate method and a loop to compute the factorial value and return the result.