Nguyễn Vân
Hỏi từ APP VIETJACK
Vt chương trình tính quãng đường từ nhà đến trường khi bt vận tốc và tg bt vận tốc và thời gian nhập từ bàn phím
Quảng cáo
1 câu trả lời 262
program DistanceCalculation;
var
speed, time, distance: real;
begin
write('Enter the speed (km/h): ');
readln(speed);
write('Enter the time (h): ');
readln(time);
distance := speed * time;
writeln('The distance is ', distance:0:2, ' km.');
readln;
end.
var
speed, time, distance: real;
begin
write('Enter the speed (km/h): ');
readln(speed);
write('Enter the time (h): ');
readln(time);
distance := speed * time;
writeln('The distance is ', distance:0:2, ' km.');
readln;
end.
Quảng cáo
Bạn cần hỏi gì?
Câu hỏi hot cùng chủ đề
-
Đã trả lời bởi chuyên gia
86402
Gửi báo cáo thành công!
