title: Curly brackets after for statement
body: <p>I'm a newbie.
  Wrote a code to print sum of number from 1 to 10.
  Here's what happened;</p>
  
  <pre><code>for(a = 1; a&lt;=10; a++)
  sum += a;
  cout&lt;&lt;sum;
  </code></pre>
  
  <p>Executing that gave me the correct answer i.e 55</p>
  
  <p>When I execute the following:</p>
  
  <pre><code>for(a = 1; a&lt;=10; a++)
  {
  sum += a;
  cout&lt;&lt;sum;
  }
  </code></pre>
  
  <p>It gives me a complete different and wrong answer i.e 13610152128364555</p>
  
  <p>Why does this happen? 
  What goes wrong when I put curly brackets after for statement?</p>
  
  <p>I hope this is not a silly question.</p>