class Factorl
{
public static void main(String args[])
{
long n,fact=1;
n=Long.parseLong(args[0]);
for(int i=1;i<=n;i++)
{
fact=fact*i;
}
System.out.println("fact="+fact);
}
}
its showing Exception in thread "main"
java.lang.ArrayIndexOutOfBoundsException: 0 at Factorl.main