Ответы
Ответ дал:
3
Program Sample;
const n = 4;
var i, maxValue, inpValue: integer;
begin
maxValue := low(maxValue);
for i := 1 to n do
begin Write('Введите число: ');
ReadLn(inpValue);
if maxValue < inpValue then
maxValue := inpValue;
end;
WriteLn('Максимальное из ', n, ' чисел равно ', maxValue);
end.
const n = 4;
var i, maxValue, inpValue: integer;
begin
maxValue := low(maxValue);
for i := 1 to n do
begin Write('Введите число: ');
ReadLn(inpValue);
if maxValue < inpValue then
maxValue := inpValue;
end;
WriteLn('Максимальное из ', n, ' чисел равно ', maxValue);
end.
Prokudin34:
Проверил(а) программу?
Похожие вопросы
1 год назад
1 год назад
1 год назад
1 год назад
6 лет назад
6 лет назад
8 лет назад
8 лет назад