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(](/uploads/image/z/5441242-58-2.jpg?t=C%E8%AF%AD%E8%A8%80%E6%B1%82n%21%E7%A8%8B%E5%BA%8F%E6%AD%A3%E7%A1%AE%E7%A8%8B%E5%BA%8F%E6%98%AFmain%28%29%7B+int+i%2Cn%3B+long+t%3D1%3B+i%3D1%3B+printf%28%22Please+put+a+number%3A%22%29%3B+scanf%28%22%25d%22%2C%26n%29%3B+while%28i)
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”.