C语言求n!程序正确程序是main(){ int i,n; long t=1; i=1; printf("Please put a number:"); scanf("%d",&n); while(i
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 19:44:02
C语言求n!程序正确程序是main(){inti,n;longt=1;i=1;printf("Pleaseputanumber:");scanf("%d",&n);while(iC语言求n!程序正确程
C语言求n!程序正确程序是main(){ int i,n; long t=1; i=1; printf("Please put a number:"); scanf("%d",&n); while(i
C语言求n!程序
正确程序是
main()
{
int i,n;
long t=1;
i=1;
printf("Please put a number:");
scanf("%d",&n);
while(i
C语言求n!程序正确程序是main(){ int i,n; long t=1; i=1; printf("Please put a number:"); scanf("%d",&n); while(i
1 把开头两行改成:int long t=1,i,n; 在VC++ 2005也能正常运行,且结果不变.
2 如果你的不正常,估计是“int long”的原因,长整型正规的写法是:“long int”.