#include
double fun(int m)
{
double y=1.0;
int i; //i改为小写
//
y+=1.0/(i*i); //1改为1.0
return(y);
}
main()
{
int n=5;
printf("nThe result is %lfn",fun(n));
}
#include
double fun(int m)
{
double y=1.0;
int i; //i改为小写
//
y+=1.0/(i*i); //1改为1.0
return(y);
}
main()
{
int n=5;
printf("nThe result is %lfn",fun(n));
}