function s = i4vec_sum ( n, x )

%*****************************************************************************80
%
%% I4VEC_SUM returns the sum of the entries of an I4VEC.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    14 August 2009
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer N, the number of entries in the vector.
%
%    Input, integer X(N), the vector.
%
%    Output, real S, the sum of the entries.
%
  s = sum ( x(1:n) );

  return
end
