Question: Write a complete C++ program that will do both of the following tasks. Ask the user to enter an integer in the range of 100
Write a complete C++ program that will do both of the following tasks.
Ask the user to enter an integer in the range of 100 to 10,000,000. Read in the input. If the user value is not in the right range, then write out an error message and repeat the process until the user enters an acceptable value.
Find and output the largest integer whose factorial value is less than or equal to m, where m is the user input value from the previous loop. For example, if the user entered 1000, then 6, which has a factorial of 720, is the largest integer, since 7! is greater than 1000.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
