Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Chapter2;
- import java.io.IOException;
- public class Pruebas {
- public static void main(String[] args) throws IOException {
- char resp;
- System.out.println("Quieres entrar en el bucle infinito?");
- resp=Consola.leeChar();
- while (resp=='s' && resp!='n'){
- for (double d=0.0; d != 1.0; d+=0.1){
- System.out.println(d);
- }
- }
- /* int ch;
- while (true)
- {
- System.out.println("Presiona S para continuar");
- ch=Consola.leeInt();
- if (ch=='S' || ch=='s')
- break;
- }
- */
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment