Question: Write a function to calculate n! where n is passed into the function and the result is returned. If n equals 5, then 5! =
Write a function to calculate n! where n is passed into the function and the result is returned. If n equals 5, then 5! = 1 x 2 x 3 x 4 x 5
Indent or I will count off.
Do not write a complete program
A. Write the prototype
B. Write a calling statement
C. Write the function
in c++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
