填空题

下面程序段可以求出n!的值。
#include<stdio.h>
main()
int i,n;
long np;
scanf("%d",&n);
______;/*第一空*/
for(i=2;______;i++)/*第二空*/
______;/*第三空*/
printf("n=%d,n!=%ld\n",n,np);

【参考答案】

np=1/*笫一空。给变量np赋以1的初值*/
i<=n/*第二空。确定乘法运算的上限*/
np......

(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)