joseleonweb

Untitled

Dec 3rd, 2020
377
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. System.out.println("Introduce de 1 a 3 monedas:");
  2. monedasJ = kb.nextInt();
  3. if (monedasJ <= -1 || monedasJ >= 4){
  4.     System.out.println("ERROR");
  5.     error = true;
  6.  
  7.     while (error == true){
  8.         System.out.println("vuelve a provar");
  9.         monedasJ = kb.nextInt();
  10.         if (monedasJ >= 0|| monedasJ <= 3){
  11.             error = false;
  12.             numJugadoresF1--;
  13.         }else {
  14.             error = true;
  15.         }        
  16.     ...
  17.     }
  18. ...
  19. }
RAW Paste Data