
% Program that add N numbers
% Total number of numbers "N" and each number is provided 
% on the screen.

clear;
SUM=0;
N=input('N=' );
for i=1:N
   x(i)=input('x(i)=');
   SUM=SUM+x(i);
%   disp([i,SUM]);
end
 disp([i,SUM]);
%disp(x);
% disp(x');
% disp(SUM);

% Activate the first "disp"
% What happen when you change the position of "disp" inside the loop?
% Activate the last three "disp". Explain
