Ответы
Ответ дал:
0
Program Auto;
var
car_speed, distance, total_outgo: integer;
uses crt;
begin
writeln('Enter speed of the car(km): ');
readln(car_speed);
writeln('Enter distance, which you need to cross(km): ');
readln(distance);
if car_speed > 50 then
begin
total_outgo := 1 * (distance / 20);
end;
else
begin
total_outgo := 1 * (distance / 30);
end;
writeln(total_outgo);
end.
var
car_speed, distance, total_outgo: integer;
uses crt;
begin
writeln('Enter speed of the car(km): ');
readln(car_speed);
writeln('Enter distance, which you need to cross(km): ');
readln(distance);
if car_speed > 50 then
begin
total_outgo := 1 * (distance / 20);
end;
else
begin
total_outgo := 1 * (distance / 30);
end;
writeln(total_outgo);
end.
Вас заинтересует
2 года назад
7 лет назад
10 лет назад
10 лет назад
10 лет назад