How to find the maximum number in two using java
class FindMax
{
public static void main(String args[])
{
int a=20,b=30;
if(a>b)
System.out.println("The Maximum No Is "+a);
else
System.out.println("The maximum No Is"+b);
}
}
class FindMax
{
public static void main(String args[])
{
int a=20,b=30;
if(a>b)
System.out.println("The Maximum No Is "+a);
else
System.out.println("The maximum No Is"+b);
}
}
No comments:
Post a Comment