September 2021 0 13 Report
Сделать блок-схему программы Program GG;
Var i, N:integer;
S:real;
X:array [1..200] of real;
Begin
write('Введите N = ');
readln(N);
writeln('Исходный массив X:');
For i:=1 to N Do
begin
X[i]:=random(9)-3;
write(X[i],' ');
If X[i]<0 then S:=S+X[i];
end;
writeln('Сумма отрицательных элементов = ',S);
writeln('Модифицированный массив X:');
For i:=1 to N Do
begin
If i mod 2<>0 then X[i]:=round(X[i]*100/S)/100;
write(X[i],' ');
end;
End.
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Copyright © 2024 SCHOLAR.TIPS - All rights reserved.