Răspuns :
Program tablouri;
type vector=array[1..100] of integer;
var n, i, y:integer;
t:vector;
function suma(x:vector; n:integer):integer;
var i, s:integer;
begin
s:=0;
for i:=1 to n do
s:=s+x[i];
suma:=s;
end;
Function Min(x:vector; n:integer):integer;
Var I,m:integer;
Begin
M:=x[1];
For i:=2 to n do If x[i]<min then M:=x[i];
min:=M;
End;
Function Max(x:vector; n:integer):integer;
Var I,m:integer;
Begin
M:=x[1];
For i:=2 to n do If x[i]>max then M:=x[i];
max:=M;
End;
Function NZero(x:vector; n:integer):integer;
Var I,m:integer;
Begin
M:=0;
For i:=1 to n do If x[i]=0 then M:=m+1;
NZero:=M;
End;
begin {main}
{Citirea datelor}
Write('Tastati numarul de valori n=');
Readln(n);
Write('Tastati ', n, 'valori');
For i:=1 to n do
read(t[i]);
{Afisarea datelor}
write('Ati tastat:');
for i:=1 to n do
write(t[i],' ');
{Apel de functie}
y:=suma(t,n);
{Afisarea rezultatului}
writeln('Suma=', y);
writeln('Minimul=',min(t,n));
writeln('Maximul=',max(t,n));
writeln('Sunt ',NZero(t,n),' numere nule');
end.