import java.io.*;
public class logicbase
{
public static void main(String args[])
{
System.out.println("\nHello This Is The First Logical Programme");
DataInputStream in=new DataInputStream(System.in);
try
{
int x,y;
System.out.println("\nEnter A Number :: ");
x=Integer.parseInt(in.readLine());
System.out.println("\nEnter A Number :: ");
y=Integer.parseInt(in.readLine());
System.out.println("Bigger No is :: "+max(x,y));
}
catch(Exception e)
{
System.out.println(e.getMessage());
}
}
public static int max(int p,int q)
{
if(p>q)
{
return p;
}
else
{
return q;
}
}
}
Comments
Post a Comment