07-bucle-while.java 232 B

1234567891011121314
  1. class Main {
  2. public static void main(String[] args) {
  3. int counter = 0;
  4. while (counter < 3) {
  5. System.out.println("Contador = " + counter);
  6. counter++;
  7. }
  8. System.out.println("Bucle finalizado!!");
  9. }
  10. }