Computer Science, asked by srinithi75, 7 months ago

Factorial of n numbers program using no arguments with no return type concept​

Answers

Answered by Munmun57
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