求大神帮我看看哪里出错,怎么答案不对
#include<stdio.h>#include<conio.h>
#include<stdlib.h>
fun(int m)
{
double y=0,d;
int i;
for(i=100;i<=m;i+=100)
{
d=(int)i*(int)i;
y+=1.0/d;
}
return (y);
}
void main()
{
int n=2000;
printf("\nThe result is %lf\n",fun(n));
}