RosettaCodeData/Task/Compile-time-calculation/PL-I/compile-time-calculation-2.pli

9 lines
224 B
Plaintext

/* Factorials using the pre-processor. */
test: procedure options (main);
declare (x, y) fixed decimal;
x = 24;
put ('factorial 4 is ', x);
y = 720;
put skip list ('factorial 6 is ', y);
end test;