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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!