Professional Documents
Culture Documents
*;
class add1
{
public static void main(String args[])throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter Three Numbers");
//String s1 = br.readLine();
//String s2 = br.readLine();
//String s3 = br.readLine();
int a,b,c;
a=Integer.parseInt(s1);
b=Integer.parseInt(s2);
c=Integer.parseInt(s3);
if(a>b && b>c)
System.out.println("A is the Frist largest:" +a+ "\nB is the second
largest:"+b+"\nC is the third largest:"+c);
}
else if(a>c && c>b)
{
System.out.println("A is the Frist largest:" +a+ "\nC is the second
largest:" +c+ "\nB is the third largest:"+b);
}
}
}
}