Package

Source Code of Max2nbr

import java.util.Scanner ;
public class Max2nbr {
  public static void main ( String[] args ) {
     double nbr1;
     double nbr2;

     Scanner clavier = new Scanner ( System.in ) ;
     nbr1 = clavier.nextDouble();
     nbr2 = clavier.nextDouble();

     if(nbr1 >= nbr2){
       System.out.println(nbr1);}
    else{
      System.out.println(nbr2);}
    }
      
}
TOP

Related Classes of Max2nbr

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.