I need a C+ program that utilizes and meets the following criteria: Asks a user for a number. Uses an “if” statement to determine if the number is greater than one. If the number is not greater than one, you must write out an error message.If the number is greater than 1, the program calculates the square and cube of the number, and displays the output to the user.
Here is what the program looks like when it’s executed with a number less than 1 and with a number greater than 1: Here is my code so far, it NEEDS to print the number you started with and the desired result.