#include <stdio.h> int main (void) { // 1-1/2+1/3......+1/99-1/100 double sum = 0.0; for( int i=1; i<=99; i+=2 ) sum += 1.0/(i*(i+1)); printf( "%f\n", sum ); return 0; }