Encontrar el mayor valor de un conjunto de n números dados en javascript?
Encontrar el mayor valor de un conjunto de n números dados en javascript.
Encontrar el mayor valor de un conjunto de n números dados en javascript.
Pregunta de Informática · 1 respuesta · 3 votos · mejor respuesta de Ieadolfokolpinpdvzhz
En resumen
/ * * To change this template, choose Tools | Templates * and open the template in the editor. * / package ejer4 ; import java. Io. * ; import java. Util.
/ * * To change this template, choose Tools | Templates * and open the template in the editor.
* / package ejer4 ; import java.
Io. * ; import java.
Util.
* ; / * * * * @author Administrador * / public class Main { / * * * @param args the command line arguments * / public static void main(String[] args) { / / TODO code application logic here InputStreamReader isr = new InputStreamReader (System.
In) ; BufferedReader br = new BufferedReader (isr) ; Scanner teclado = new Scanner(System.
In) ; int numero, val, mayor, menor ; double media ; System.
Out. println("cuantos numeros quiere ingresar : ") ; numero = teclado.
NextInt() ; mayor = 0 ; menor = 1000000000 ; media = 0 ; for (int i = 1 ; imayor){ mayor = val ; } if (val.
/ * * To change this template, choose Tools | Templates * and open the template in the editor. * / package ejer4 ; import java. Io. * ; import java. Util.