using System;
public class Program
{
public static void Main()
Console.WriteLine("Please Enter the value of N:");
int n=(Console.Read());
long i, fact = 1;
if(!(n < 0))
for (i = 1; i < n; i++)
fact= fact * i;
Console.WriteLine("Factorial of N is:" + fact);
}
else
Console.WriteLine("Factorial of Negative numbers doesn't exist.");