9 \h'+10u' 1 \fBprogram\fR factorials(input, output);
10 \h'+10u' 2 { This program prints factorials }
12 \h'+10u' 4 \fBconst\fR
15 \h'+10u' 7 i : integer;
17 \h'+10u' 9 \fBfunction\fR factorial(n : integer) : integer;
19 11 \fBif\fR n = FAC1 \fBthen\fR
22 14 factorial := n * factorial(n-1);
26 18 write('Give a number : ');
28 20 \fBif\fR i < 1 \fBthen\fR
29 21 writeln('No factorial')
31 23 writeln(factorial(i):1);
38 rom 'factorials.p\(rs000' asp 12
45 exp $factorial lae input
46 pro $factorial, ? cal $_rln
56 stl -4 rom 'No factorial'
76 pro $m_a_i_n, ? lae output
80 con input, output lin 24
84 lxa 0 mes 4,24,'factorials.p\(rs000'
89 rom 'Give a number : '