awtk/tests/fscripts/demo_while3.fs

14 lines
122 B
Forth
Raw Normal View History

2022-08-23 11:21:48 +08:00
var a=0
var b=0
2021-01-02 23:07:37 +08:00
while(a < 100) {
a=a+1
if((a < 20) || (a > 50)) {
continue
}
b=b+a
print(a, b)
}
print(b)