
Фотий
6 год назад
Найти сумму двух наибольших из трех заданных чисел.
В Паскале.
ОТВЕТЫ

Витольд
Aug 11, 2019
Var
a, b, c, t: integer;
begin
readln(a, b, c);
if c gt; b then begin
t := b;
b := c;
c := t;
end;
if c gt; a then begin
t := a;
a := c;
c := t;
end;
writeln(a + b);
end.
a, b, c, t: integer;
begin
readln(a, b, c);
if c gt; b then begin
t := b;
b := c;
c := t;
end;
if c gt; a then begin
t := a;
a := c;
c := t;
end;
writeln(a + b);
end.
137
Смежные вопросы: