/* Note:Your choice is C IDE */#include "stdio.h"void main(){ int result,i; result=1; printf("请输入一个数(求他的阶乘):"); scanf("%d",&i); for(;i>=1;i--) { result*=i; } printf("利用for循环计算出阶乘的结果是:%d ",result);}