c语言编程题,计算1+2!+3!+4!+······+10!的值怎么编程呀?具体的步骤.

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 22:18:01

c语言编程题,计算1+2!+3!+4!+······+10!的值怎么编程呀?具体的步骤.
c语言编程题,计算1+2!+3!+4!+······+10!的值怎么编程呀?具体的步骤.

c语言编程题,计算1+2!+3!+4!+······+10!的值怎么编程呀?具体的步骤.
#include
int main()
{
int sum = 0;
int step = 1;
int i;
for(i=1;i