matlab程序for循环计算n!

如题所述

function s = f( n )

s=1;

for m=1:n

s=s*m;

end

温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答