class Factorial
{
static long fac( int n )
{
if (n==1 )
return 1;
else
return n*fac(n-1);
}
public static void main(String[] args)
{
int k ;
long f;
k=Integer.parseInt(args[0]);// 将第一个参数转化为整形数字
f=fac(k);
System.out.println(f);
}
}
{
static long fac( int n )
{
if (n==1 )
return 1;
else
return n*fac(n-1);
}
public static void main(String[] args)
{
int k ;
long f;
k=Integer.parseInt(args[0]);// 将第一个参数转化为整形数字
f=fac(k);
System.out.println(f);
}
}