/*Zeta function*/
#include<stdio.h>
#include<math.h>
void
main()
{
int
i;
float
s=0.0,pi,d;
for(i=1;i<=4;i++)
{
s=s+pow(i,-4);
}
d=s*90;
pi=pow(d,0.25);
printf("\n
the value of pi is=%f\n",pi);
}
RESULT:
the value of pi
is=3.138998
Press any key to continue
No comments:
Post a Comment
Thanks for comment.