#includeint main() { int i=1; long n; int fact=1; printf("please input the number:n"); scanf("%ld",&n); while(i<=n) { fact=fact*i; i++; } printf("%ld!=%ldn",n,fact); return 0; }
欢迎分享,转载请注明来源:内存溢出
#includeint main() { int i=1; long n; int fact=1; printf("please input the number:n"); scanf("%ld",&n); while(i<=n) { fact=fact*i; i++; } printf("%ld!=%ldn",n,fact); return 0; }
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)