class A
{
public static void main(String asrg[])
{
A hh=new A();
float a=10,b=80;
float x=22,y=222;
float z=hh.max(x,y);
float e=hh.min(x,y);
hh.sum(x,y);
float r=hh.getMaxSqrt(x,y);
System.out.println("x="+z+"y="+e);
System.out.println("y="+r);
}
public void sum( float x,float y)
{
float a,b;
a=max(x,y);
System.out.println("a="+a);
b=min(x,y);
System.out.println("b="+b);
}
public static float getMaxSqrt(float x,float y)
{
float c;
c=max(x,y)*max(x,y);
return c;
}
public static float max(float x,float y)
{if(x<=y)
{return y;
}
else
{
return x;
}
}
public float min(float x,float y)
{
if(x<=y)
return x;
else
return y;
}
}