using System;
public class Program
{
public static void Main()
int num=5;
int fect=1;
for (int i=1;i<=5;i++){
fect=fect*i;
Console.Write(fect+" ");
}