Computer Science, asked by MeRahul, 1 month ago

Class name : Factorial

Member Methods:

void fact() – to print the factorial of a number n.

Fill in the blanks of the given program with appropriate java statements: –

Class a) _______________

{

b)________ void c)_______

{

int n=5,d) _________, i;

for(i=1; e)______; i++)

f)____________

System.out.println(“Factorial of “g)_______” is “ +f);

}

public static h)_________ main (String args[])

{

i)_____________ ob= new Factorial():

j)_____________​

Answers

Answered by amansarrafas24payxgs
0

I hope you find it useful... If you have any query do comment, I will try to solve it...

Attachments:
Similar questions