#include<stdio.h>
int main()
{
int n,i;
double sum=1.00;
scanf("%d",&n);
if(n==1)printf("1");
else{
for(i=2;i<=n;i++)
{sum-=(double)1/(i*i);
}
printf("%.6f",sum);
}
return 0;
}
标签:10,int,double,sum,11.20,printf,main From: https://blog.51cto.com/u_15758636/5872195