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
0
I hope you find it useful... If you have any query do comment, I will try to solve it...
Attachments:
Similar questions
English,
17 days ago
English,
17 days ago
Psychology,
17 days ago
Math,
1 month ago
Math,
1 month ago
Business Studies,
9 months ago