create a class factorial whose members are as given: private data members of class: num, f( integer variables) public members of class: 1= factorial()- a default constructor to assign 1 to f, 2= factorial ( int n)- a parameterized constructor to assign num= n, 3= int GetFactorial() to find and return the factorial of num. write a program to input a number and print it's factorial by using scanner class.
Answers
Answered by
0
Answer:
this is a activity or a question
Similar questions