Question: Using C++ please 2. (25 marks) Write a program that asks the user to enter an integer and prints its square, square root, the factorial

 Using C++ please 2. (25 marks) Write a program that asks

Using C++ please

2. (25 marks) Write a program that asks the user to enter an integer and prints its square, square root, the factorial as well as whether or not the number is a prime number. For example, if the user inputs 4, the output should look like this: Input a number: 4 The results are 16 Square Square root: Factorial Prime: 24 No

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!