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.
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.