共有回帖数 0 个
-
这段程序
include stdio.h
include stdlib.h
int main(void);
{
long long int output,calculate,count1,count2,input;
printf ("Please enter the number...n");
scanf ("%lli",input);
printf ("%lli factorial = ",&input);
count1 = input-1;
output=input;
count2 = 0;
while (input != 0)
{
calculate= input-1;
output= output*calculate;
count2 = count2+1;
if (count2 == count1)
{
printf ("%llin",output);
break;
}
恩应该是这样。。。用来算阶乘的。。。于是一跑就崩,返回值3221225477.求解怎么改啊=_=
楼主 2016-03-31 08:52 回复
Copyright © 2010~2015 直线网 版权所有,All Rights Reserved.沪ICP备10039589号
意见反馈 |
关于直线 |
版权声明 |
会员须知