Factorial of n numbers program using no arguments with no return type concept
Answers
Answered by
3
class no.
{
public static void main (int n)
{
int f = 1;
for(i=1; I<=n; i++)
{
f = n*f;
}
System.out.println( f );
}
}
Similar questions