Calculates the factorial value of the number: for example, if the user keys in “5,” the program calculates the result based on the following formula: 5*4*3*2*1; if the input value is “3,” the program will calculate 3*2*1.
Display the result.
Users can press Y to continue or N to exit the program.
Assignment Expectations
You are required to apply recursion in the program.
Must provide source code, and snapshots of program running. Keep code as simple as possible.