C语言求n!程序正确程序是main(){ int i,n; long t=1; i=1; printf("Please put a number:"); scanf("%d",&n); while(i

来源:学生作业帮助网 编辑:作业帮 时间:2024/08/29 04:09:56
C语言求n!程序正确程序是main(){ int i,n; long t=1; i=1; printf(
xŐN@_e$@hKHe r_jqAb  "h7FE! LǕXn&sϜoFTcq60Coye%Q'7\QJRחC EQ<ǧ("9T  )Ki ΦEQH o{ řЂs vks6 40"?>^W 'm$X4~?B֤.gJL+`,jv2oIGy;Yn@q-5}e

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”.