add: for sample, fix bugs, and make test harness
This commit is contained in:
13
samples/for.rpg
Normal file
13
samples/for.rpg
Normal file
@@ -0,0 +1,13 @@
|
||||
**FREE
|
||||
Ctl-Opt Main(For);
|
||||
|
||||
Dcl-Proc For;
|
||||
dcl-s num int(10);
|
||||
|
||||
for num = 1 to 3;
|
||||
dsply ('i = ' + %char(num));
|
||||
endfor;
|
||||
for num = 5 downto 1 by 1;
|
||||
dsply ('i = ' + %char(num));
|
||||
endfor;
|
||||
End-Proc For;
|
||||
Reference in New Issue
Block a user