C+ program

by | Jul 27, 2021 | Homework Help

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.

We help you get better grades, improve your productivity and get more fun out of college!!

Get Homework Answer for this question

Free title page

Free reference page

Free formatting

Unlimited revisions

Get answer to your homework