Time Exceeded
代码
#include<stdio.h>
int main()
{
int num;
printf("输入一个整数:");
scanf("%d",&num);
while (num<=0)
{
printf("重新输入:");
scanf("%d",&num);
}
int Sum=1;
for(int i=1;i<=num;i++)
{
Sum=Sum*i;
}
printf("%d",Sum);
return 0;
}