// 1/1+2/3+3/5+4/7+...+11/21 { double sum = 0; for( unsigned i=0; i!=11; ++i ) sum += (i+1.)/(2*i+1); printf( "%f\n", sum ); }