Find Factorial in C#


public void PrintFactorial(int n)
{
int result = 1;
for (int i = n; i > 1; i--)
{
result = result * i;
}
Console.WriteLine(result);
}

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/SLQ1UNDF5no/12617