diff --git a/ProjectEuler/C++/Problem12.cpp b/ProjectEuler/C++/Problem12.cpp index 57da816..2436a81 100644 --- a/ProjectEuler/C++/Problem12.cpp +++ b/ProjectEuler/C++/Problem12.cpp @@ -38,6 +38,8 @@ int main(){ std::cout << "The triangular number " << sum << " is made with all number >= " << counter - 1 << " and has " << countDivisors << " divisors" << std::endl; std::cout << "The problem took " << std::chrono::duration_cast(std::chrono::high_resolution_clock::duration(endTime - startTime)).count() << " milliseconds" << std::endl; + std::cin.get(); + return 0; }