Ответ:
Объяснение:
7)
program Zadacha7;
var x, max: integer;
begin
readln (x);
max:=x;
while (x <> 0) do begin
if (max<x)
then max := x;
end;
writeln (max);
end.
8)
program Zadacha8;
var x, min: integer;
min:=x;
if (min>x)
then min := x;
writeln (min);
9)
Сейчас напишу и дополню
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
Объяснение:
7)
program Zadacha7;
var x, max: integer;
begin
readln (x);
max:=x;
while (x <> 0) do begin
readln (x);
if (max<x)
then max := x;
end;
writeln (max);
end.
8)
program Zadacha8;
var x, min: integer;
begin
readln (x);
min:=x;
while (x <> 0) do begin
readln (x);
if (min>x)
then min := x;
end;
writeln (min);
end.
9)
Сейчас напишу и дополню
var x, max , n: integer;
begin
readln (n);
max:=0;
while (n <> 0) do begin
readln (x);
if ((maxthen max := x;
n:=n-1;
end;
writeln (max);
end.