c++ program for factorial using class

c++ program for factorial using class

Output:

enter the value of n:
5
the factorial of 5 is 120

Implementation: