Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

I am trying to resolve the following problem. I need a C+ program that utilizes stdio.

I am trying to resolve the following problem. If you are the guy who has previously commented please do not as you are simply making the situation worse. I need a C+ program that utilizes <stdio.h> and meets the following criteria:

  1. Asks a user for a number.
  2. 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.
  3. 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. So far the only help I've gotten is someone putting just numbers in and deleting my output in their solution, you know who you are and if you make me waste another tutor question I will be escalating the issue and reporting you to site admins. I do not want to use long long but the only assistance or guidance I have gotten from tutors is suggesting to do so.

Here is my code thus far:

  • Attachment 1
  • Attachment 2
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question