cpp-peglib/pl0/samples/square.pas
2017-08-08 07:06:37 -04:00

19 lines
168 B
ObjectPascal

VAR x, squ;
PROCEDURE square;
BEGIN
squ := x * x
END;
BEGIN
x := 1;
WHILE x <= 10 DO
BEGIN
CALL square;
! squ;
x := x + 1
END
END.