source: liacs/coco/tests/code-generation/test4.p0@ 324

Last change on this file since 324 was 2, checked in by Rick van der Zwet, 15 years ago

Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)

File size: 208 bytes
RevLine 
[2]1program hoop;
2
3var
4 a: integer;
5
6function fac(i: integer): integer;
7
8begin
9 writeinteger(i);
10 if (i = 0) then
11 fac := 1
12 else
13 fac := i * fac(i-1)
14end;
15
16begin
17 a := fac(5);
18 writeinteger(a)
19end.
Note: See TracBrowser for help on using the repository browser.