My professor give me this code i need to know why is the output is 720 and what is the used of FACT word in this code
static int Fact(int num)
{
if (num == 1)
return 1;
else return num * Fact(num - 1);
}
static void Main(string[] args)
{
Console.WriteLine(Fact(6));
} //output is 720