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