1. Engineering
  2. Computer Science
  3. use the c language to calculate for n ex 5...

Question: use the c language to calculate for n ex 5...

Question details

Use the c++ language to calculate for n!

Ex: 5! = 1x2x3x4x5 = 120
.Use the provided tests and turn the completed form in to your instructor. 3c. Write an algorithm that asks the user for n then calculates n! Write test cases. Implement it in C++ compile and execute it. Test it with your test cases: does it get the right answers? When does it get the wrong answers? .Use the provided tests and turn the completed form in to your instructor.

5 32 3c. (3 points) Execute your program and fill in the actual output column. Fix any mistakes that occur Input Enter O for n Enter 1 for n Expected Output O! is 1 1! is 1 Enter 5 for n S! is 120 Enter 20 for n (wont work unless product variable is a double) 20! is 2432902008176640000

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution