Предмет: Информатика, автор: wwwrustam77

Паскаль, помогите решить задачу

Приложения:

Ответы

Автор ответа: Yegor55
0

var

  a, b, c : Integer;

begin

  Write('Vvedite 1 chislo: '); ReadLn(a);

  Write('Vvedite 2 chislo: '); ReadLn(b);

  Write('Vvedite 3 chislo: '); ReadLn(c);

 

  if b > a then a := b;

  if c > a then a := c; 

 

  Writeln('Naibolshee chislo: ', a);

  Writeln('Kvadrat chisla: ', sqr(a));

 

end.

Автор ответа: Gluk1
0

 

var a, b, c, max: integer;

begin
readln(a, b, c);
if (a >= b) then
max := a
else
max := b;
if (c > max) then
max:=c;
write(sqr(max));
readln;

end.

 

Похожие вопросы