source: liacs/coco/tests/code-generation/plus2.p0@ 269

Last change on this file since 269 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: 259 bytes
Line 
1program calculatortje;
2
3var
4 fred,
5 barney: real;
6
7function plusr(wilma, betty: real): real;
8
9begin
10 plusr := wilma + betty
11end;
12
13begin
14 fred := readreal;
15 barney := readreal;
16 writereal(fred);
17 writereal(barney);
18 writereal(plusr(fred, barney))
19end.
Note: See TracBrowser for help on using the repository browser.