fork download
  1. program max;
  2. var y, a, b, c: integer;
  3. begin
  4. writeln('Нахождение наибольшей из трех величин');
  5. write('Введите a, b, c: ');
  6. readln(a, b, c);
  7. y := a;
  8. if (b > y) then y := b;
  9. if (c > y) then y := c;
  10. writeln('y = ', y);
  11. end.
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
Нахождение наибольшей из трех величин
Введите a, b, c: y = 0