Var a,b,c,d,e,max,min:integer;
begin
writeln('a, b, c, d, e:');
readln(a,b,c,d,e);
if a>b then max:=a else max:=b;
if c>max then max:=c;
if d>max then max:=d;
if e>max then max:=e;
if aif cif dif ewriteln(min);
writeln(max);
end.
Пример:
a, b, c, d, e:
1 2 3 4 5
1
5