#include int main(int argc, char** argv) { const unsigned int N = 10000000; unsigned long sum = 0; for (unsigned int i = 1; i <= N; ++i) { sum += i; } printf("The sum from 1 to %d is %lu.\n", N, sum); return 0; }