求助,dev-c++调试时出现program received signal sigsegv,segmentation fault
刚刚学C,许多不懂,求解答#include<stdio.h>
int main()
{
int i=0;
int n=1;
printf("请输入一个正数字\n");
scanf("%d",i);
while(i>1)
{
n=i*n;
i=i-1;
}
printf("n!=%d",n);
return 0;
}
program received signal sigsegv,segmentation fault