title: Addition and Subtraction giving incorrect results
body: <p>I made a simple program to add and subtract the given numbers. Let's say the 2 numbers give were 5 and 5. It would print 5 + 5 = 10 and 5 - 5 = 0. Right now I'm not sure what's wrong. I might need a temporary variable, but something with the input isn't right. If you test the numbers with 5 and 5 it prints: </p>
  
  <pre><code>Addition / Subtraction Program
  *------------------------------*
  
  Press Enter to begin!
  What is the number you'd like to add / sub to?5
  5
  What is the next number?5
  55 + 5 = 105 - 5 = 0
  </code></pre>
  
  <p>Here's the code I'm using: </p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main() {
  
      int num_1;
      int num_2;
  
      cout &lt;&lt; "Addition / Subtraction Program" &lt;&lt; endl &lt;&lt; "*------------------------------*\n\nPress Enter to begin!";
      cin.get();
  
      cout &lt;&lt; "What is the number you'd like to add / sub to?";
  
      cin &gt;&gt; num_1;
  
      cout &lt;&lt; num_1 &lt;&lt; endl &lt;&lt; "What is the next number?";
  
      cin &gt;&gt; num_2;
  
      cout &lt;&lt; num_2;
  
      cout &lt;&lt; num_1 &lt;&lt; " + " &lt;&lt; num_2 &lt;&lt; " = " &lt;&lt; num_1 + num_2;
  
      cout &lt;&lt; num_1 &lt;&lt; " - " &lt;&lt; num_2 &lt;&lt; " = " &lt;&lt; num_1 - num_2;
      return 0;
  }
  </code></pre>