using System;
public class Program
{
public static void Main()
int ch;
int res = 1;
int i = 1;
Console.WriteLine("Ввеліть число ");
ch = Convert.ToInt32(Console.ReadLine());
while (i <= ch)
res = res * i;
i++;
Console.WriteLine("Факторіал числа " + ch + "=" + res);
}