//PROGRAM TO CALCULATE FACTORIAL OF A NUMBER USING COMMAND LINE ARGUMENT
class FactorialCLA
{
public static void main(String args[ ])
{
int i,s=1;
int n=Integer.parseInt(args[0]);
for(i=1;i<=n;i++)
{
s=s*i;
}
System.out.println(“Factorial of number is: “+s);
}
}