Package

Source Code of Max3nbr

import java.util.Scanner ;
public class Max3nbr {
  public static void main ( String[] args ) {
    Scanner clavier = new Scanner ( System.in )
    double x = clavier.nextDouble();
    double y = clavier.nextDouble();
    double z = clavier.nextDouble();
    double resultat;

    if(Max2nbr(x,y) >= z){
      System.out.println(" Le nombre le plus grand est" +Max2nbr(x,y));
    }else{
      System.out.println(" Le nombre le plus grand est" +z);
    }

  }

  public static double Max2nbr (double nbr1,double nbr2) {
    Scanner clavier = new Scanner ( System.in )
    if(nbr1 >= nbr2){
      // System.out.println(nbr1);
      return nbr1;
    }else{
      //System.out.println(nbr2);
      return nbr2;
    }
  }
}
TOP

Related Classes of Max3nbr

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.