August 2022 1 3 Report
_Помогите (Pascal) сложить в массиве из 10 элементов первые 5 и последние 5 и сравнить их
начало :
const n=10;
var a: array [1..n] of integer;
i, s: integer;
begin
for i := 1 to n do
begin
a[i] := Random(100);
Write(a[i]:4);
end;
for i:=1 to n do readln(a[ i ] );
s:=a [1];
s:=s+a[ n ];
write(s);
i := 1;
I := 10;
write { '1');
end;_
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.