Problem

(Program) Write, compile, and run a C++ program that asks the user to input two numbers....

(Program) Write, compile, and run a C++ program that asks the user to input two numbers. After your program accepts these numbers by using one or more cin object calls, have it check the numbers. If the first number entered is greater than the second number, the program should print the message “The first number is greater.”; otherwise, it should print the message “The first number is not greater than the second.” Test your program by entering the numbers 5 and 8 and then using the numbers 11 and 2. What will your program display if the two numbers entered are equal?

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 4.2