19 lines
232 B
Plaintext
19 lines
232 B
Plaintext
# This program prints out squares
|
|
# 1 4 9 16 25 36 49 64 81 100
|
|
|
|
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. |