home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
cs.rhul.ac.uk
/
www.cs.rhul.ac.uk.zip
/
www.cs.rhul.ac.uk
/
pub
/
CS375
/
gardens1.pfc
< prev
next >
Wrap
Text File
|
1999-01-11
|
462b
|
38 lines
program gardens1;
(* first attempt to solve the
ornamental gardens problem *)
var
count: integer;
process turnstile1;
var
loop: integer;
begin
for loop := 1 to 20 do
count := count + 1
end; (* turnstile1 *)
process turnstile2;
var
loop: integer;
begin
for loop := 1 to 20 do
count := count + 1
end; (* turnstile2 *)
begin
count := 0;
cobegin
turnstile1;
turnstile2
coend;
writeln('Total admitted: ',count)
end.