پیدا کردن مقدار تقریبی فاکتوریل اعداد بزرگ از روش تقریب استرلینگ :


string Large_factorial(int n)
{
return (Math.Sqrt(2 * n * Math.PI) * Math.Pow((double)(n) / Math.E, n)).ToString();
}