 <p>try with this => put </p> <pre><code>int temp; cin&gt;&gt;temp; </code></pre> <p>before <code>return 0;</code> to pause the program, because the execution finished (successfully) before the last output could be written to the console.</p>