Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int a = Integer.parseInt(scanner.nextLine());
- int b = Integer.parseInt(scanner.nextLine());
- int c = Integer.parseInt(scanner.nextLine());
- if (a > b) {
- if (a > c) {
- System.out.println("A is the biggest!");
- } else if (a < c) {
- System.out.println("C is the biggest!");
- } else {
- System.out.println("A and C are the biggest!");
- }
- }
- if (a < b) {
- if (b > c) {
- System.out.println("B is the biggest!");
- } else if (b < c) {
- System.out.println("C is the biggest");
- } else {
- System.out.println("B and C are the biggest");
- }
- }
- if (a == b) {
- if (a == c) {
- System.out.println("AllL are equal");
- } else {
- System.out.println("A and B are the biggest");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement