entrada de Datos: For (I 1 I CV I++)
entrada de Datos: For (I 1 I CV I++)
*; public class caso3 { public static void main (String[] args) throws IOException { int cv,n,i,m=0; //ENTRADA DE DATOS BufferedReader x= new BufferedReader (new InputStreamReader(System.in)); do { System.out.print("Ingrese Cantidad de valores a calcular : > "); cv=Integer.parseInt(x.readLine()); } while(cv<0); for ( i=1; i<=cv; i++) { System.out.print("Ingrese " + i + " valor : > "); n=Integer.parseInt(x.readLine()); if(i==1) m=n; else { if(n>m) m=n; } }// fin FOR System.out.println(""); System.out.println(""); System.out.print(" El Mayor es : " + m);
} }