C语言填空:阶乘
#include <stdio.h> //求任意整数的阶乘 //如果输入3则输出3!=6 main() { int n,a,c=1; scanf("%d",&n); for(a=1;【1】;a++) c=【2】; printf("%d!=%d",【3】); getchar(); }
#include <stdio.h> //求任意整数的阶乘 main() { int n,a,c=1; scanf("%d",&n); for(a=1;a<=n;a++) c=c*a; printf("%d!=%d",n,c); getchar(); }