Write code in C++ The factorial function is used frequently in probability probl
ID: 3824337 • Letter: W
Question
Write code in C++
The factorial function is used frequently in probability problems. Write a program that uses a for statement the evaluate the factorials from 1 to 7. Print the results in tabular form. What difficulty might prevent you from calculating a factorial of 25? b) Write a program that uses a for statement to multiply a sequence of integers. Assume that the first integer input, signifies the number of values to be entered. Your program should read only one value per input statement. A typical input sequence might be 6 1 2 3 5 5 9 where 6 indicates that the subsequent values are to be multiplied.