Объяснение:
Program z_1;
var x,i,max:integer;
begin
max:=-10;
for i:=1 to 10 do
read(x);
if x>max then max:=x;
end;
writeln(max);
end.
Program z_2;
var i:integer;
x,s:real;
for i:=1 to 20 do
read (x);
s:=s+x;
s:=s/20;
writeln (s);
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Объяснение:
Program z_1;
var x,i,max:integer;
begin
max:=-10;
for i:=1 to 10 do
begin
read(x);
if x>max then max:=x;
end;
writeln(max);
end.
Program z_2;
var i:integer;
x,s:real;
begin
for i:=1 to 20 do
begin
read (x);
s:=s+x;
end;
s:=s/20;
writeln (s);
end.