var a:array [1..5] of integer;s,i:integer;BEGIN for i := 1 to 5 do begin writeln('a[',i,']='); read(a[i]); s:=s + a[i] end; writeln('s=',s);END.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
var a:array [1..5] of integer;
s,i:integer;
BEGIN
for i := 1 to 5 do
begin
writeln('a[',i,']=');
read(a[i]);
s:=s + a[i]
end;
writeln('s=',s);
END.