Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scanner teclado = new Scanner(System.in);
- int num=0;
- int cont=0;
- while (num>=0)
- {
- cont++;
- System.out.println("Ingrese un numero: ");
- num=teclado.nextInt();
- }
- System.out.println("FIN!!");
- System.out.println("Numeros ingresados: "+cont);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement