Write a conditional structure that will do the following: 1. Test whether x and y are equal. 2. If they are equal, display the message "They're equal" 3. If they're not equal, display the message "They're not equal"

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter5: Making Decisions
Section: Chapter Questions
Problem 19RQ
icon
Related questions
Question

need this done in c++

Write a conditional structure that will do the following:
1. Test whether x and y are equal.
2. If they are equal, display the message "They're equal"
3. If they're not equal, display the message "They're not equal"
圖 Paragraph
B
I
Path: p
Transcribed Image Text:Write a conditional structure that will do the following: 1. Test whether x and y are equal. 2. If they are equal, display the message "They're equal" 3. If they're not equal, display the message "They're not equal" 圖 Paragraph B I Path: p
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
ADT and Class
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
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT