Check the given numbers are different

Report a typo

Write a program that reads three numbers and checks that they all are different, i.e. not equal to one another.

The output should be true or false.

Sample Input 1:

5 5 9

Sample Output 1:

false
Write a program in Java 17
import java.util.Scanner;

class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// put your code here
}
}
___

Create a free account to access the full topic