for语句
import java.util.Scanner;
public class FactorialTest{
public static void main (String args[])
{
Scanner sc=new Scanner(System.in);
int n = sc.nextInt();
{
long i,j,k;
for(i=1,j=1,k=1;j<=n;j++)
{
k*=j;
}
System.out.println(n+"!="+k);
}
}
}