Commit 63ea9b89 by Marcos Echague

Update Ejercicio08.java

parent 8dcb1b10
import java.util.Scanner; import java.util.Scanner;
/** /**
* Ejercicio08 * Ejercicio08
*/ */
public class Ejercicio08 { public class Ejercicio08 {
public static void main(String[] args) { public static void main(String[] args) {
int numero = 30; int numero = 30;
Scanner teclado = new Scanner(System.in); Scanner teclado = new Scanner(System.in);
do { do {
System.out.println("Ingrese el numero"); System.out.println("Ingrese el numero");
numero = teclado.nextInt(); numero = teclado.nextInt();
} while (numero<0); } while (numero<0);
System.out.println("El numero es " + numero ); System.out.println("El numero es " + numero );
teclado.close(); teclado.close();
} }
} }
\ No newline at end of file //mechague Excelente!
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment