program mas_umn_esli_bolshe_menshe;
const n=10;
var
p:array[1..n] of integer;
i:integer;
begin
for i:=1 to n do begin
p[i]:=random(11)-5;
write(p[i]:5,' ');
if p[i]>0 then p[i]:=p[i]*20;
if p[i]<0 then p[i]:=p[i]*17;
writeln(p[i]:6);
end;
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
program mas_umn_esli_bolshe_menshe;
const n=10;
var
p:array[1..n] of integer;
i:integer;
begin
for i:=1 to n do begin
p[i]:=random(11)-5;
write(p[i]:5,' ');
if p[i]>0 then p[i]:=p[i]*20;
if p[i]<0 then p[i]:=p[i]*17;
writeln(p[i]:6);
end;
end.