Skip to content

Commit 974f3a7

Browse files
authored
Merge pull request #248 from bowbahdoe/bowbahdoe-patch-1
Update labeled_break.md
2 parents b67c258 + 7844ba7 commit 974f3a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/loops/labeled_break.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ int y = 3;
4040
xLoop:
4141
while (x != 0) {
4242
while (y != 0) {
43-
if (x == 2 && y == 2) {
43+
if (x == 4 && y == 2) {
4444
break xLoop;
4545
}
4646

@@ -51,8 +51,8 @@ while (x != 0) {
5151
"y is " + y
5252
);
5353
y--;
54+
x--;
5455
}
55-
x--;
5656
}
5757

5858
IO.println("done.");

0 commit comments

Comments
 (0)