Print factorial of 14.
Ready — edit the code above and click Run.
using System;
class Program
{
static void Main()
{
int n = 14;
long f = 1;
for (int i = 2; i <= n; i++) f *= i;
Console.WriteLine(f);
}
}
Try solving on your own first, then reveal the official answer.
Use long for larger n.