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 MIT license. 
%
%  Modified:
%
%    14 August 2009
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of entries in the vector.
%
%    integer X(N), the vector.
%
%  Output:
%
%    real S, the sum of the entries.
%
  s = sum ( x(1:n) );

  return
end
