Computer Science, asked by mdgaznafarkhanb, 5 months ago

Question 08
A class RecFact defines a function to find the factorial of a number. The details of the class are given below:
[06]
Class name
: Rec Fact
Data members instance variables
: stores the number whose factorial is required
r
stores an integer
Member functions
RecFact()
:default constructor
void readnum
: to enter values for 'n' and 'r
int factorial(int)
: returns the factorial of the number
void factseries
to calculate and display the value of
n!
r!:(n-r):
Specify the class RecFact giving the details of the constructor and member functions void readnum().
int factorial(int) and void factseries(). Also define the main function to create an object and call
methods accordingly to enable the task.​

Answers

Answered by shiva911712921
5

Explanation:

sorry for handwriting...

Attachments:
Similar questions