title: New project doesn't cout any values?
body: <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main()
  {
      int a = 6160;
      int b = 6160;
      int c = a + b;
      int d = 0;
      int f = 100;
      int i;
      for (i = 0; i &lt;= c; i++)
      {
          while (c &gt;= f)
          {
              d += 1;
              c = c - f;
              break;
          }
      }
      cout &lt;&lt; d &lt;&lt; "-" &lt;&lt; c;
      system("pause");
      return 0;
  }
  </code></pre>
  
  <p>This program is supposed to increase <code>d</code> by 1 each time <code>c</code> reaches <code>100</code> and then start counting again till it's <code>100</code> and then increase <code>d</code> by 1 more and if there is any extra numbers that didn't reach <code>100</code> after the whole calculation is done the this will be <code>c</code> .. the matter is when I put these values in the program above in <code>a</code> and <code>b</code> I get this answer:</p>
  
  <pre><code>122-120
  </code></pre>
  
  <p>while it should be:</p>
  
  <pre><code>123-20
  </code></pre>