program b1;
uses crt;
var i,n: integer; a:array[1..100] of integer; s:longint;
begin
clrscr;
write('nhap vao so nguyen n :');
readln(n);
for i:=1 to n do
begin
write('a[',i,']='); readln(a[i]);
end;
s:=0;
for i:=1 to n do s:=s+a[i];
write('Tong cac so vua nhap=',s);
readln;
end.
sr trả lời hơi trễ