Question: Please answer question 5 and use the language c++ FO:79) d. D: (60:69) e. F: otherwise 4. Write a simple program that calculates the factorial.

 Please answer question 5 and use the language c++ FO:79) d.

Please answer question 5 and use the language c++

FO:79) d. D: (60:69) e. F: otherwise 4. Write a simple program that calculates the factorial. Prompt user for the input and then display the factorial result. 5. Write a program that asks the user for an integer. The program checks and prints to the screen whether the number is prime or not. For example, if user enters 17, the program should print 17 is prime; if the user enters 20, the program should print 20 is not prime

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!