import java.io.*;
class Big
{
public static void main(String args[]) throws IOException
{
int num1,num2,num3,big_num;
System.out.println("Enter first number");
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
num1=Integer.parseInt(br.readLine());
System.out.println("Enter second number");
num2=Integer.parseInt(br.readLine());
System.out.println("Enter third number");
num3=Integer.parseInt(br.readLine());
big_num = (num1 > num2) ?( (num1>num3) ? num1:num3):(num2>num3?num2:num3);
System.out.println("The Biggest Number is: "+big_num);
}
}
No comments:
Post a Comment