source: trunk/Examples/Square.pas

Last change on this file was 2, checked in by chronos, 6 years ago
  • Fixed: >= and <= operators.
  • Added: Read source code from file supplied as command line parameter.
File size: 166 bytes
Line 
1var x, squ;
2
3procedure square;
4begin
5 squ := x * x
6end;
7
8begin
9 x := 1;
10 while x <= 10 do
11 begin
12 call square;
13 !squ;
14 x := x + 1
15 end
16end.
17
Note: See TracBrowser for help on using the repository browser.