title: Bigger output than expected
body: <p>I needed a program where a user orders items but the output was wrong. It was outputting 12-digit numbers when I only needed 2-3 digits. Why is it outputting bigger numbers than expected?</p>
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main()
      {
      //Order
      int Pfries = 80, Pburgers = 150, Pdonuts = 30, Picecream = 25, Psoftdrinks = 20;
      int Nfries, Nburgers, Ndonuts, Nicecream, Nsoftdrinks;
      int fries = Pfries * Nfries, burgers = Pburgers * Nburgers, donuts = Pdonuts * Ndonuts, icecream = 
      Picecream * Nicecream, softdrinks = Psoftdrinks * Nsoftdrinks;
      string customer;
      cout&lt;&lt;&quot;Welcome to Murakani Cafe!&quot;&lt;&lt;endl;
      cout&lt;&lt; &quot;Enter the name of the customer: &quot;;
      cin&gt;&gt;customer;
      cout&lt;&lt; &quot;Enter the number of fries ordered:&quot;;
      cin&gt;&gt;Nfries;
      cout&lt;&lt; &quot;Enter the number of burger(s) ordered: &quot;;
      cin&gt;&gt;Nburgers;
      cout&lt;&lt; &quot;Enter the number of donut(s) ordered: &quot;;
      cin&gt;&gt;Ndonuts;
      cout&lt;&lt; &quot;Enter the number of ice cream ordered: &quot;;
      cin&gt;&gt;Nicecream;
      cout&lt;&lt; &quot;Enter the number of soft drink(s) ordered: &quot;;
      cin&gt;&gt;Nsoftdrinks;
  
  
      //Output
      cout&lt;&lt; &quot;Hi &quot;&lt;&lt; customer &lt;&lt; &quot;! Here is the summary of your order:&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;&quot;&lt;&lt;endl;
      cout&lt;&lt; Nfries &lt;&lt; &quot;    fries    &quot;&lt;&lt; Pfries &lt;&lt; fries &lt;&lt;endl;
      cout&lt;&lt; Nburgers&lt;&lt; &quot;    burgers    &quot;&lt;&lt; Pburgers &lt;&lt; burgers&lt;&lt;endl;
      cout&lt;&lt; Ndonuts&lt;&lt; &quot;    donuts    &quot;&lt;&lt; Pdonuts &lt;&lt; donuts&lt;&lt;endl;
      cout&lt;&lt; Nicecream&lt;&lt; &quot;    ice cream    &quot;&lt;&lt; Picecream &lt;&lt; icecream&lt;&lt;endl;
      cout&lt;&lt; Nsoftdrinks&lt;&lt; &quot;    soft drinks    &quot;&lt;&lt; Psoftdrinks &lt;&lt; softdrinks&lt;&lt;endl;
  
  
      return 0;
  }
  </code></pre>