Last change
on this file since 366 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:
243 bytes
|
Rev | Line | |
---|
[2] | 1 | program k;
|
---|
| 2 |
|
---|
| 3 | function test(i: integer): integer;
|
---|
| 4 |
|
---|
| 5 | var hlp1, hlp2: integer;
|
---|
| 6 | begin
|
---|
| 7 | writeinteger(i);
|
---|
| 8 | if (i > 1) then
|
---|
| 9 | begin
|
---|
| 10 | test := (test(i-1) + test(i-1))
|
---|
| 11 | end
|
---|
| 12 | else
|
---|
| 13 | begin
|
---|
| 14 | test := 1
|
---|
| 15 | end
|
---|
| 16 | end;
|
---|
| 17 |
|
---|
| 18 | begin
|
---|
| 19 | writeinteger(test(6))
|
---|
| 20 | end.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.