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