Why get i warning about it ?
For example 9 2 9 result is 2 my programm does that. But i got warning.
package com.codegym.task.task04.task0424;
/*
Three numbers
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if (b!=c && b!=a && c==a){
System.out.println(b);
}
else if (b!=c && c!=a && a==b){
System.out.println(c);
}
else if (a!=b && c!=a && b==c){
System.out.println(a);
}
else {
}
}
}