printf为甚么在运行过程会出现异常?
#include<stdio.h>#include<conio.h>
#include<stdlib.h>
main()
{
float sigh=1.0;
float deno=2.0,sum=1.0,term;
while(deno<=100)
{ sigh= -sigh;
term= sigh/ deno;
sum=sum+term;
deno=deno+1.0;
printf("%d\t",sum);
}
printf("%f",sum);
getch();
}
为甚么在运行过程会出现异常?