CONCEPT:
FIRST CREATE A CLASS ANY NAME YOU WANT THEN IN PUBLIC SECTION DEFINE A FUNCTION FOR DISPLAY A RESULT, INPUT A NUMBER, AND TO CALCULATE A FACTORIAL (use the factorial concept in it). AND IN THE MAIN SECTION CALL THE FUNCTION LINE WISE
MUST BE IN :
INPUT FUNCTION
CALCULATION FUNCTION
DISPLAY FUNCTION
FOR MORE YOU CAN SEE AND RUN THE CODE BELOW
0 Comments
if you have any doubt, plz let me know