cpp-peglib/pl0/samples/square.pas

19 lines
168 B
ObjectPascal
Raw Normal View History

2015-08-06 03:06:58 +00:00
VAR x, squ;
PROCEDURE square;
BEGIN
2017-08-08 03:43:16 +00:00
squ := x * x
2015-08-06 03:06:58 +00:00
END;
BEGIN
x := 1;
WHILE x <= 10 DO
BEGIN
CALL square;
! squ;
x := x + 1
END
END.