awtk/tests/fscripts/demo_while3.fs

14 lines
114 B
Forth
Raw Normal View History

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