write a complete C language program to calculate and display
write a complete C language program to calculate and display the given statement 7/900-7/899+7/898 -7/897......+7/800
Solution
#include <stdio.h>
int main()
{
double ans=0;
double i,j;
for(i=900,j=7;i>=800;i--,j=j*-1)
{
ans = ans + j/i;
}
printf(\"%lf\ \",ans);
return 0;
}
