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
History,
5 months ago
Math,
10 months ago
Physics,
10 months ago
English,
1 year ago
CBSE BOARD X,
1 year ago