Subscribe to Feeds

Send Your Projects To georgepj@hotmail.com

We'll Publish It With Your Name :-)

Programs Can Also Be Downloaded From The Folders Below....[Or Scroll Down]

Series

Click Here To Download C File Of This Program

 //1-1/(2*3)+1/(3*4)......  
//Downloaded from www.c4cprog.co.nr
#include<conio.h>
#include<math.h>
void main()
{
int i,n;
float sum=1;
clrscr();
printf("Enter The Value Of N :");
scanf("%d",&n);
for(i=2;i<=n;i++)
sum=sum+(1/(i*(i+1.0))*(pow(-1,(i+1))));
printf("\n\n\tSum = %f",sum);
getch();
}

0 comments:

Post a Comment