Составьте программу которая запрашивает ввод трех значений температуры и проверяет есть ли среди них температура таяния льда (>0) Паскаль .

27 Апр 2020 в 19:40
129 +1
0
Ответы
1

program CheckTemperatures;

var
temp1, temp2, temp3: Integer;

begin
// Requesting input of three temperature values
writeln('Enter the first temperature value: ');
readln(temp1);

writeln('Enter the second temperature value: ');
readln(temp2);

writeln('Enter the third temperature value: ');
readln(temp3);

// Checking if any of the temperatures is above 0 (melting point of ice)
if (temp1 > 0) or (temp2 > 0) or (temp3 > 0) then
writeln('At least one of the temperatures is above the melting point of ice.')
else
writeln('None of the temperatures is above the melting point of ice.');

end.

18 Апр 2024 в 13:11
Не можешь разобраться в этой теме?
Обратись за помощью к экспертам
Гарантированные бесплатные доработки в течение 1 года
Быстрое выполнение от 2 часов
Проверка работы на плагиат
Поможем написать учебную работу
Прямой эфир