# Answer to Question #17507 in Delphi | Pascal for Anthony Jacobs

Question #17507

Write a program which calculates the volume of water deposited by a particular canal after a certain period of time.

The canal deposits water into a dam at a speed of 1m/s. The canal is 10m wide and

20m deep.

The canal deposits water into a dam at a speed of 1m/s. The canal is 10m wide and

20m deep.

Expert's answer

program Change;

var

a,b,v,t:Integer;

begin

& a:=10;

b:=20;

readln(t);

v:=a*b*t;

writeln('The volume of water deposited by ',t,' seconds is ',v,'m3');

& readln;

end.

var

a,b,v,t:Integer;

begin

& a:=10;

b:=20;

readln(t);

v:=a*b*t;

writeln('The volume of water deposited by ',t,' seconds is ',v,'m3');

& readln;

end.

Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

## Comments

## Leave a comment