Enter two numbers: 12 They are not the same Enter two numbers: 34 12 They are not the same Enter two numbers: 56 34 They are not the same Enter two numbers: 12 12 The two numbers is the same

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter4: Financial Functions, Data Tables, And Amortization Schedules
Section: Chapter Questions
Problem 8AYK
icon
Related questions
Question
Write a C++ Program that identifies if the two entered numbers are the same. If the numbers are different ask again the user to input another set of numbers. Add while loop, the program will only terminate if the entered number is the same. Sample output is given, please attached the source code and the output.
I Select C\Users\PC User\Desktopic++ sample codesi:SampleCode.exe
Enter two numbers:
12
They are not the same
Enter two numbers:
34
12
They are not the same
Enter two numbers:
56
34
They are not the same
Enter two numbers:
12
12
The two numbers is the same
Process exited after 17.16 seconds with return value e
Press any key to continue. .
Transcribed Image Text:I Select C\Users\PC User\Desktopic++ sample codesi:SampleCode.exe Enter two numbers: 12 They are not the same Enter two numbers: 34 12 They are not the same Enter two numbers: 56 34 They are not the same Enter two numbers: 12 12 The two numbers is the same Process exited after 17.16 seconds with return value e Press any key to continue. .
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
C-string
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L