Total Pageviews

Thursday, March 15, 2012

JAVA PROGRAM TO FIND GREATER OF 2 NUMBERS

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");
}
}

No comments:

Post a Comment