#include <stdio.h> int main( void ) { unsigned long long sum=0, factorial=1; for( unsigned i=1; i<=20; ++i ) { factorial *= i; sum += factorial; } printf( "%llu\n", sum ); // 2561327494111820313 }