#include <stdio.h> int main( void ) { unsigned result = 0; for( unsigned i=1,p=1; i<=10; ++i ) { p *= i; result += p; } printf( "%u\n", result ); return 0; } //1!+2!+3!+4!+5!+6!+7!+8!+9!+10!=4037913