#include <stdio.h> int main( void ) { double x = 2.5; unsigned n = 15; double result = 1; double a=-1, b=1; for( unsigned i=0; i!=n; ++i ) { a *= -x; b *= i+1; result += a/b; } printf( "%f\n", result ); }