Last change
on this file since 44 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:
245 bytes
|
Line | |
---|
1 | program commonsubexpr;
|
---|
2 |
|
---|
3 | var a : integer;
|
---|
4 |
|
---|
5 | function calc(a,b,c: integer; d,e,f: real): real;
|
---|
6 |
|
---|
7 | begin
|
---|
8 | calc := ((a+b+c)*(a+b+c)+((a*d)+(a*d)*(e * f))+(a+b+c))/((a*d)+(a+b+c))
|
---|
9 | end;
|
---|
10 |
|
---|
11 | begin
|
---|
12 | a := readinteger;
|
---|
13 | writereal(calc(a,2,3,1.0,2.0,3.0))
|
---|
14 | end.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.