cpp-peglib/language/pl0/samples/square.pas

19 lines
167 B
ObjectPascal
Raw Normal View History

2015-08-06 03:06:58 +00:00
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.