Computer Science, asked by umapal35340, 9 months ago

write a program in Java to accept three numbers and if they are unequal then display the greatest number otherwise display they are equal ​

Answers

Answered by aryanchander148
0

Answer:

Write a program to input three numbers and check whether they are equal or not. If they are unequal numbers then display the greatest among them otherwise, display the message 'All the numbers are equal'.

Sample Input: 34, 87, 61

Sample Output: Greatest number: 87

Sample Input: 81, 81, 81

Sample Output: All the numbers are equal.

Similar questions