Вопрос задан 15.06.2023 в 14:58. Предмет Информатика. Спрашивает Шарифуллин Эраст.

СРОЧНО ИНФОРМАТИКА 70 БАЛЛОВ!!! Написать на паскале программу, которая выводит на экран время, за

которое проедет велосипедист N километров. При этом он едет со скоростью 20 километров в час. (расстояние вводится с клавиатуры). Программа paskalABC ОБЯЗАТЕЛЬНО!!
0 0
Перейти к ответам

Ответы на вопрос

Внимание! Ответы на вопросы дают живые люди. Они могут содержать ошибочную информацию, заблуждения, а также ответы могут быть сгенерированы нейросетями. Будьте внимательны. Если вы уверены, что ответ неверный, нажмите кнопку "Пожаловаться" под ответом.
Отвечает Голуб Яночка.

Ответ:

Вроде бы так

program p1;

var S,v,t:real;

begin

 v:=20;

 read (S);

 t:=S/v;

 writeln (t);

end.

0 0
Отвечает нейросеть ChatGpt. Будьте внимательны, ответы нейросети могут содержать ошибочные или выдуманные данные.

To write a program in Pascal that calculates the time it takes for a cyclist to travel a certain distance, you can use the formula: time = distance / speed. In this case, the speed is given as 20 kilometers per hour. Here's an example program in Pascal that accomplishes this task:

```pascal program CalculateTime; var distance, speed, time: real; begin writeln('Enter the distance in kilometers:'); readln(distance); speed := 20; // kilometers per hour time := distance / speed; writeln('The time it takes to travel ', distance:0:2, ' kilometers is ', time:0:2, ' hours.'); end. ```

This program prompts the user to enter the distance in kilometers, reads the input, calculates the time using the formula, and then displays the result on the screen. The time is displayed in hours.

To run this program, you can use a Pascal compiler or an online Pascal compiler. Simply copy the code into the compiler, compile it, and run it. After entering the distance, the program will output the time it takes to travel that distance at a speed of 20 kilometers per hour.

I hope this helps! Let me know if you have any further questions.

0 0

Похожие вопросы

Топ вопросов за вчера в категории Информатика

Последние заданные вопросы в категории Информатика

Задать вопрос