awtk/tests/fscripts/demo_while4.fs

14 lines
98 B
Forth
Raw Normal View History

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