Задача 7 Урок 9

link

Пользователь вводит четыре числа, найдите из них максимальное.

program lesson9_7;
var
  a, b, c, d, max1, max2: integer;
begin
  writeln('enter 4 number');
  readln(a, b, c, d);
  if(a > b) then
      max1 := a
  else
      max1 := b;
  if(c > d) then
      max2 := c
  else
      max2 := d;
  if(max1 > max2) then
      writeln(max1, ' - max number')
  else
      writeln(max2, ' - max number');
  readln();
end. 
vedro-compota's picture

решение засчитано

_____________
матфак вгу и остальная классика =)