uses crt;
var a:array[1..6]of integer;
i,t:integer;
begin
clrscr;
for i:=1 to 6 do
begin
write('A[',i,']='); readln(a[i]);
end;
t:=0;
for i:=1 to 4 do
t:=t+a[i];
writeln('Tong cua 4 so dau tien la: ',t);
readln;
end.
Đúng 1
Bình luận (0)