#include <stdio.h> int main( void ) { double result = 0.0; for( size_t i=0,a=1,b=2; i!=20; ++i,b+=a,a=b-a ) result += b*1.0/a; printf( "%lf\n", result ); return 0; }