关于计算阶乘的程序
我的:
#include <stdio.h>
int main(int argc, const char * argv[]) {
// insert code here...
int n;
scanf("%d", &n);
int i, fact = 1;
for(i = 1; i <= n; i++){
fact = fact * i ;
}
return fact;
printf("%d\n",n);
return 0;
}
程序运行没有问题,但始终显示“code will never be excuted”
各位前辈,能帮忙看看是哪里不对吗?