cpp-peglib/language/pl0/samples/square.pas
2015-08-05 23:06:58 -04:00

19 lines
167 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.