#include <stdio.h> int main() { double data[100]; double sum = 0.0; int i = 0; double sign = 1.0; printf("\nYou entered the values:\n"); for(i = 1 ; i<=100 ; i++){ data[i-1] = 1.0/(2*i*(2*i+1)*(2*i+2)); } for(i = 0 ; i<100 ; i++) { sum += sign*data[i]; sign = -sign; } printf("\nResult is %.4lf\n", 4.0*sum+3); }