Question: Create a program to operate on the number. USING C++ LANGUAGE Create a function to ask the user for number and takes the number. Create
Create a program to operate on the number. USING C++ LANGUAGE
-
Create a function to ask the user for number and takes the number.
-
Create a function to check if the number is even or odd.
-
Create a function to calculate the input number to power of 2 manually.
** You should not take the number from the main function. You should call the function for taking the number and send back the number to the main.
** Once you send back the number to the main, you can pass it to other functions for further operations.
-
You should return all the result to the main and display from the main. Display from the function you will lose mark.
-
Your program should allow the user to repeat this calculation as often as he or she wishes (Use Loop)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
