Question: Write a program that reads three integers and prints all the same if they are all the same, all different if they are all different,

Write a program that reads three integers and prints "all the same" if they are all the same, "all different" if they are all different, and
"neither" otherwise.
The following are 3 sample runs of demonstrate the program:
Sample run 1:
Please enter 3 integers:
4,4,4
all the same
Sample run 2:
Please enter 3 integers:
4,1,9
all different
Sample run 3:
Please enter 3 integers:
4,74
neither
Note: Use java language.
 Write a program that reads three integers and prints "all the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!