{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Practicos03 - if(nota> mayor mayor =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.io.*; import java.util.*; i public class Practicos03{ p public static Scanner teclado = new Scanner(System.in); p public static void main(String args[]){ p int nota; int mayor = 0; do{ System.out.print("Ingrese un número: "); nota = teclado.nextInt();
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: if(nota > mayor) mayor = nota; }while(nota>=0); } System.out.println("\n p Acabas de ingresar un número negativo. Fin de la aplicación"); System.out.println("\n La nota mayor fue: " + mayor); S } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online