{
{
int[] arr = new int[10];
int fact;
if(args.length==0)
{
return;
}
for (int i=0; i {
}
for(int i=0;i {
fact=1;
while(arr[i]>0)
{
fact=fact*arr[i];
arr[i]--;
}
}
}
Java Program to find factorial of list of number reading input as command line argument.
Reviewed by
on
September 05, 2019
Rating:

No comments: