I don't understand why the last statement doesn't work.
I'm missing something..
package fr.codegym.task.task04.task0417;
/*
Avons-nous une paire ?
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//écris ton code ici
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(a == b)
System.out.print(a +" "+ b + " ");
else if(a == c)
System.out.print(a +" "+ c + " ");
else if(b == c)
System.out.print(b +" "+ c + " ");
else if(a == b && c == b)
System.out.print(a +" "+ b +" "+ c);
}
}