1:
uses crt;
var a:array[1..45]of real;
i:integer;
begin
clrscr;
for i:=1 to 45 do
begin
write('Diem cua ban thu ',i,'='); readln(a[i]);
end;
for i:=1 to 45 do
write(a[i]:4:2,' ');
readln;
end.
2:
uses crt;
var a:array[1..50]of real;
t:real;
i:integer;
begin
clrscr;
for i:=1 to 50 do
begin
write('a[',i,']='); readln(a[i]);
end;
t:=0;
for i:=1 to 50 do
t:=t+a[i];
writeln('Tong cua mang la: ',t:4:2);
readln;
end.