From 3615483d3ec6ffd22566697c56b91ed6e6061be5 Mon Sep 17 00:00:00 2001 From: Matthew Ellison Date: Thu, 27 Sep 2018 05:11:49 -0400 Subject: [PATCH] Added a pause before ending --- ProjectEuler/C++/Problem12.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; }