import java.io.Console;
class largest{
public static void main(String args[]){
Console cons=System.console();
String f1=cons.readLine("Enter First value");
int a=Integer.parseInt(f1);
String f2=cons.readLine("Enter second value");
int b=Integer.parseInt(f2);
String f3=cons.readLine("Enter third value");
int c=Integer.parseInt(f2);
if(a>b==a>c){
System.out.println("largest value" +a);
} else if(b>c==b>a){
System.out.println("largest value" +b);}
else if(c>a==c>b){
System.out.println("largest value" +c);
}
}
}
not correct output