Question: Question: a) In C++ write a program that prints out all the command line arguments given to it (one command per line), asks the user



Question:
a) In C++ write a program that prints out all the command line arguments given to it (one command per line), asks the user to input an int number, and compute and print a factorial of that number. This program should define a seperate function for computing facotrial, and call it from the main() function. Note: be sure that the user inputs an appropriate value and that the factorial uses the built-in int type with the largest range.
b) Create a solution to work in a loop (for ex. ask the user for input, compute factorial, ask for the input again, compute factorial, etc.)
// Randomly generate numbers between 1 and 1000 for user to guess. #include iostream #include stdlib #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
