#include"stdio.h"main(){longn=1;intn;printf("输入一个整数n=");scanf("%d",&n);哗搐糕诽蕹赌革涩宫绩if(n==0){printf("0的阶乘=%d\n",n);}else{for(inti=n;i>0;i--)n*=i;printf("所输整数的阶乘=%d\n",n);}}