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

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 06:04:31
求s=1=1/(2*2)+1/(3*3)+1/(4*4)+1/(5*5)+.+1/(n*n)的近似值.用C语言编写
x){P_HHSHki-0mebii>b'{

求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