Question: Write a C++ Program which allows the user to input an integer value (your roll number + 10) for a variable name (your Name). Based

Write a C++ Program which allows the user to input an integer value (your roll number + 10) for a variable name (your Name). Based on the input value, the program should perform the following tasks using the functions:

  1. To check whether its a prime number?
  2. Find its factorial?
  3. Whether its even or odd?

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!