محاسبه ی فاکتوریل عدد ورودی

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _08___Factorial
{
class Program
{
static void Main(string[] args)
{

Console.WriteLine(" Ente a value : ");
int n = Convert.ToInt32(Console.ReadLine());
int factorial = 1;

for (int i = 1; i <= n; i++)
{
factorial = factorial * i;
}

Console.WriteLine(factorial);
Console.ReadKey();

//shmp30

}
}
}