for循环语句计算69!的值

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/16 12:27:02

for循环语句计算69!的值

int s=1; 
for(int i=2;i<70;i++)
{
    s=s*i;//循环退出时S的值就是69的阶乘
}