Ответ:
program z;
var m:array [1..5] of integer;
i:integer;
begin
for i:=1 to 5 do
write('m[',i,'] = ');
read(m[i]);
if m[i]<0 then m[i]:=0
end;
for i:=1 to 5 do write(m[i],' ')
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
program z;
var m:array [1..5] of integer;
i:integer;
begin
for i:=1 to 5 do
begin
write('m[',i,'] = ');
read(m[i]);
if m[i]<0 then m[i]:=0
end;
for i:=1 to 5 do write(m[i],' ')
end.