function  sum = mysum_forLoop(x)
% input: 
%  n: a vector of numbers
% output:
%  result: sum of the number in the vector x
%

sum = 0;

for i = 1: length(x)
   sum = sum + x(i);
end
