编写一个程序,求s=1!+2!+3!+4!+5!+6!+7!+8!+9!+10!的值.最好写一下执行过程框图.

来源:学生作业帮助网 编辑:六六作业网 时间:2024/07/10 16:33:32
编写一个程序,求s=1!+2!+3!+4!+5!+6!+7!+8!+9!+10!的值.最好写一下执行过程框图.编写一个程序,求s=1!+2!+3!+4!+5!+6!+7!+8!+9!+10!的值.最好

编写一个程序,求s=1!+2!+3!+4!+5!+6!+7!+8!+9!+10!的值.最好写一下执行过程框图.
编写一个程序,求s=1!+2!+3!+4!+5!+6!+7!+8!+9!+10!的值.最好写一下执行过程框图.

编写一个程序,求s=1!+2!+3!+4!+5!+6!+7!+8!+9!+10!的值.最好写一下执行过程框图.
#include
using namespace std;
int main()
{
int s=0;
for(int i=1,n=1;i