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

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/07 09:10:52
编写一个程序,求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