Monday, August 4, 2014

How to find the maximum number in two using java

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

}
}

No comments:

Post a Comment

Featured Post

What is JavaScript? What is the role of JavaScript engine?

  The JavaScript is a Programming language that is used for converting static web pages to interactive and dynamic web pages. A JavaScript e...