FREE JAVA CODE
Pages
Home
ABOUT ME
CONTACT
Find Maximum of Two Value.
//Find maximum of two value.
class max
{
public static void main(String[] args)
{
int a,b;
a=10;
b=20;
if(a>b)
{
System.out.println("Max="+a);
}
else if(b>a)
{
System.out.println("Max="+b);
}
else
{
System.out.println("Both are equal");
}
}
}
Older Posts
Home
Subscribe to:
Posts (Atom)