求s=1=1/(2*2)+1/(3*3)+1/(4*4)+1/(5*5)+.+1/(n*n)的近似值.用C语言编写

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/24 22:04:50
求s=1=1/(2*2)+1/(3*3)+1/(4*4)+1/(5*5)+.+1/(n*n)的近似值.用C语言编写求s=1=1/(2*2)+1/(3*3)+1/(4*4)+1/(5*5)+.+1/(n

求s=1=1/(2*2)+1/(3*3)+1/(4*4)+1/(5*5)+.+1/(n*n)的近似值.用C语言编写
求s=1=1/(2*2)+1/(3*3)+1/(4*4)+1/(5*5)+.+1/(n*n)的近似值.用C语言编写

求s=1=1/(2*2)+1/(3*3)+1/(4*4)+1/(5*5)+.+1/(n*n)的近似值.用C语言编写
#include "stdafx.h"
#include "stdafx.h"
#include "math.h"
#include "stdio.h"
void main()
{
float s=0;
printf("please input a number to count s=1+1/(2*2)+...+1/(n*n),n