麻烦看看这是不是写错了,但我找很久不知道错哪了!
#include "stdio.h"void main()
{
int sigh=1;
float deno=2.0,sum=1.0,term;
while(deno<=100)
{ sigh= -sigh;
term= sigh/ deno;
sum=sum+term;
deno=deno+1;
}
printf(“%f”,sum);
}
2011-10-11 10:44
2011-10-11 11:14
2011-10-11 15:09
2011-10-11 16:57
2011-10-11 17:31
2011-10-11 18:23