C语言while函数 1!+...+8!

#include"stdio.h"
main()
{
int s,i,t;
s=1;i=1;t=0;
while(i<=8)
{
s=s*i;
t=t+s;
i=i+1;
}
printf("%d\n",t);
}

猜你喜欢

转载自blog.csdn.net/zhajiangmian_1998/article/details/79100431
今日推荐