ответ:http://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ru
Объяснение:http://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ruhttp://planetoflife.ru
Задача А
program Boom;
uses crt;
var
a, b: integer;
begin
Read(a, b);
if a > b then Writeln('Наибольшее число ', a) else Writeln('Наибольшее число ', b);
end.
Тестовое решение
12
52
Наибольшее число 52
Задача Б
program Boom;
uses crt;
var
a:array[1..4] of Integer;
max:integer;
i:byte;
Begin
for i:= 1 to 4 do
Begin
Write('Введите число:');
Read(a[i]);
End;
max := a[1];
for i:= 2 to 4 do
if a[i] > max then
max := a[i];
Write('Наибольшее число:');
WriteLn(max);
End.
Тестовое решение:
Введите число:12
Введите число:53
Введите число:34
Введите число:63
Наибольшее число:63
a: array [1..10,1..10] of integer;
i,j,max,n: integer;
begin
readln(n);
for i:= 1 to n do
for j:= 1 to n do readln(a[i,j]);
max:= a[1,1];
for i:= 1 to n do
for j:= 1 to n do
if (a[i,j]>max) and (a[i,j]>0) then max:= a[i,j];
writeln(max)
end.