Question: c++ ---------- Write a program that asks users for a integer value between 0 and 10. The program will then display the factorial of that
c++ ----------

Write a program that asks users for a integer value between 0 and 10. The program will then display the factorial of that value. Remindeir . The factorial of 0 equals 1 .The factorial of 1 cquals The factorial of N equals: N x (N-1) x (N-2) x (N-3) x x1. Hint: use loop to calculate product. You are required to use the following 2 function: /*Author: Input: None Output: integer between 0 and 10 Purpose: Get a number between 0 and 10 from the useir Keeps asking the user until the number is between 0 and 10 */ int get valid number ) / Author: Input: n - integer between 0 and 10 Output: factorial of n Purpose: returns the factorial of n/ long factorial (int n)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
