% Program that add N numbers % Total number of numbers "N", and each number is provided % on the screen. SUM=0; N=input('N=' ); for i=1:N x=input('x='); if x<=100 & x>=5, SUM=SUM+x; fprintf('Total= %6.0f\n',SUM) else disp('x out of range') break end disp([i,SUM]); end disp('end of loop');