for n=1:100 for j=1:100 if sin(n)<=sin(j) fprintf('the smallest nember=%d,and the corresponding n=%d'\n,sin(n),n) end end end