1、int result = 0for int i = 1 i lt= 20 i++ int temp = 1for int j = 1 j lt= i j++ temp = temp*j result += temp 循环结束后result就是结果,已经在VS里成功运行忘采纳;includelts...
整个程序代码如下include quotstdiohquotmain int i,jlong a,total=0fori=1ilt21i++ a=1forj=1j。以下是用C语言编程求出1!+2!+3!++20!的值示例代码 includeltstdioh int main int i,jlon...