13 lines
257 B
Java
13 lines
257 B
Java
public class Example16 {
|
|
public static void main(String[] args) {
|
|
int x = 1;
|
|
while (x <= 4) {
|
|
System.out.println("x = " + x);
|
|
if (x == 3) {
|
|
break;
|
|
}
|
|
x ++;
|
|
}
|
|
}
|
|
}
|