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

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

View Full Document Right Arrow Icon
import*; import java.util.*; i public class Practicos03{ p public static Scanner teclado = new Scanner(; 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 nmero negativo. Fin de la aplicacin"); System.out.println("\n La nota mayor fue: " + mayor); S } }...
View Full Document

This note was uploaded on 10/29/2009 for the course ITC TC-1002 taught by Professor X during the Spring '09 term at ITESM.

Ask a homework question - tutors are online