Advertisement
joseleonweb

Untitled

Dec 3rd, 2020
620
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. ...
  2. System.out.print("cuantas monedas vols jugador"+(i+1)+"  (de 0 a 3):");
  3. do{
  4.     moneda[i]=sc.nextInt();
  5.     if(moneda[i]<0 || moneda[i]>3) System.out.print("sols pots posar 0,1,2,3 monedas");
  6. } while(moneda[i]<0 || moneda[i]>3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement