mirror of https://github.com/japl-lang/japl.git
24 lines
176 B
Plaintext
24 lines
176 B
Plaintext
|
//[Test: breaks]
|
||
|
//[source:mixed]
|
||
|
var x = 5;
|
||
|
while (true) {
|
||
|
var a = 1;
|
||
|
x = x - a;
|
||
|
if (x < 0) {
|
||
|
break;
|
||
|
}
|
||
|
print(x);
|
||
|
}
|
||
|
//[end]
|
||
|
/*
|
||
|
[stdout]
|
||
|
4
|
||
|
3
|
||
|
2
|
||
|
1
|
||
|
0
|
||
|
[end]
|
||
|
[end]
|
||
|
*/
|
||
|
|