同样的程序,在VC和dev上运行结果不一样,哪位高手可以帮忙解决下困惑。
#include<stdio.h>#include<stdlib.h>main(){inti,N;scanf("%d",&N);if(N>=20){printf("Nis...
#include<stdio.h>
#include<stdlib.h>
main()
{int i,N;
scanf("%d",&N);
if(N>=20)
{printf("N is too big!");
printf("\n");}
else
{for(i=1;N>0;N--)
i=i*N;
printf("%d",i);
printf("\n");
}
system("pause");
}
输入20,VC输出N is too big;为什么dev输出N is too big,1992990260 展开
#include<stdlib.h>
main()
{int i,N;
scanf("%d",&N);
if(N>=20)
{printf("N is too big!");
printf("\n");}
else
{for(i=1;N>0;N--)
i=i*N;
printf("%d",i);
printf("\n");
}
system("pause");
}
输入20,VC输出N is too big;为什么dev输出N is too big,1992990260 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询