Commit 63ea9b89 by Marcos Echague

Update Ejercicio08.java

parent 8dcb1b10
import java.util.Scanner;
/**
* Ejercicio08
*/
public class Ejercicio08 {
public static void main(String[] args) {
int numero = 30;
Scanner teclado = new Scanner(System.in);
do {
System.out.println("Ingrese el numero");
numero = teclado.nextInt();
} while (numero<0);
System.out.println("El numero es " + numero );
teclado.close();
}
}
\ No newline at end of file
import java.util.Scanner;
/**
* Ejercicio08
*/
public class Ejercicio08 {
public static void main(String[] args) {
int numero = 30;
Scanner teclado = new Scanner(System.in);
do {
System.out.println("Ingrese el numero");
numero = teclado.nextInt();
} while (numero<0);
System.out.println("El numero es " + numero );
teclado.close();
}
}
//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