class Greater
{
public static void main(String args[])
{
int a=20,b=30;
if(a>b)
System.out.println("A is greater than B");
else
System.out.println("B is greater than A");
}
}
{
public static void main(String args[])
{
int a=20,b=30;
if(a>b)
System.out.println("A is greater than B");
else
System.out.println("B is greater than A");
}
}
No comments:
Post a Comment