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 sample runs of demonstrate the program:
Sample run :
Please enter integers:
all the same
Sample run :
Please enter integers:
all different
Sample run :
Please enter integers:
neither
solve with java
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
