source: liacs/coco/tests/code-generation/fibo3.p0@ 193

Last change on this file since 193 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: 231 bytes
RevLine 
[2]1program fibonee;
2
3var
4 hlp: integer;
5
6function fibo(i: integer): integer;
7
8begin
9 writeinteger(i);
10 if (i <= 1) then
11 fibo := 1
12 else
13 fibo := fibo(i-1) + fibo(i-2)
14end;
15
16begin
17 hlp := fibo(4);
18 writeinteger(hlp)
19end.
Note: See TracBrowser for help on using the repository browser.