class Main { public static void main(String[] args) { int counter = 0; while (counter < 3) { System.out.println("Contador = " + counter); counter++; } System.out.println("Bucle finalizado!!"); } }