uses crt;
var a:array[1..10]of real;
dem,i:integer;
t,ln:real;
begin
clrscr;
for i:=1 to 10 do
begin
write('a[',i,']='); readln(a[i]);
end;
{------------------------------------cau-a------------------------------------}
t:=0;
for i:=1 to 10 do
if i mod 2=1 then t:=t+a[i];
writeln('tong cac phan tu o vi tri le trong day la: ',t:4:2);
{---------------------------------cau-b--------------------------------------}
ln:=a[1];
for i:=1 to 10 do
if ln<a[i] then ln:=a[i];
writeln('phan tu lon nhat trong mang la: ',ln);
{----------------------------------cau-c------------------------------------}
dem:=0;
for i:=1 to 10 do
if a[i]>5 then inc(dem);
writeln('so phan tu lon hon 5 trong day la: ',dem);
readln;
end.