C语言求n!程序正确程序是main(){ int i,n; long t=1; i=1; printf("Please put a number:"); scanf("%d",&n); while(i
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 23:57:28
xŐN@_e$@hKHer_jqAb "h7FE!LǕXn&sϜoFTcq60Coye%Q'7\QJRחC
EQ<ǧ("9T
)KiΦEQH o{řЂs
vks6 40"?>^W
'm$X4~?B֤.g JL+`,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”.