source: liacs/coco/tests/code-generation/plus3.p0@ 335

Last change on this file since 335 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: 240 bytes
Line 
1program calculatortje;
2
3var
4 a, a1, a2: integer;
5
6function plus(a, b: integer): integer;
7
8begin
9 plus := a + b
10end;
11
12begin
13 a1 := readinteger;
14 a2 := readinteger;
15 writeinteger(a1);
16 writeinteger(a2);
17 writeinteger(plus(a1,a2))
18end.
Note: See TracBrowser for help on using the repository browser.