Hello coders!
I have a question about why the 4th condition isn't checked, I did what it asked by doing this.
else if (a == b && a == c && b==c){
System.out.println(a+" "+b+" "+c);
}
but it still would give me it back unchecked
package com.codegym.task.task04.task0417;
/*
Do we have a pair?
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
if (a == b){
System.out.println(a+" "+b);
}
else if (a == c){
System.out.println(a+" "+c);
}
else if (b == c){
System.out.println(b+" "+c);
}
else if (a == b && a == c && b==c){
System.out.println(a+" "+b+" "+c);
}
}
}