Self powers | Project Euler | Problem #48
URL to the problem page: https://projecteuler.net/problem=48 The series, 1 ¹ + 2 ² + 3 ³ + ... + 10 ¹ ⁰ = 10405071317. Find the last ten digits of the series, 1 ¹ + 2 ² + 3 ³ + ... + 1000 ¹ ⁰ ⁰ ⁰ . #include <iostream> using namespace std ; int main () { const int k = 10 ; int result [ 4 ][k], carry [ 4 ], sum [k] = { 0 }, number2 [ 4 ] = { 0 , 0 , 0 , 0 }, i, j, a, b, tmp, carry_4, number [k]; for (a = 0 ; a < 1000 ; a++) { for (j = 0 ; j < k; j++) { number [j] =...