标签:style blog color for div sp on c log
for n=100:200 %循环语句 if rem(n,21)~=0 %选择语句 continue end break end n 程序输出结果为n= 105
for m=1:500 s=0; for k=1:m/2 if rem(m,k)==0 s=s+k; end end if m==s disp(m); end end
输出:6
28
496
标签:style blog color for div sp on c log
原文地址:http://www.cnblogs.com/freesblog/p/3989493.html