以 for 循环求 1!+2!+…+10!的值。(使用matlab)
sun = 0; fact = 1; for i=1:10 for j=1:10 fact = fact*j; end sum = sum+fact; fact=1; end