class aman
{
public void greater(int a, int b)
{
if(a>b)
{
System.out.println("The greater number is = " +a);
}
else if(b>a)
{
System.out.println("The greater number is = " +b);
}
else
{
System.out.println("Both are equal");
}
}
}
No comments:
Post a Comment