title: Why I don't need brackets for loop and if statement
body: <p>I don't understand why I don't need brackets in this case</p>
  
  <pre><code>for (int i = 0; i &lt; 10; i++) 
      if (num[i] &lt; min) 
          min = num[i];
  </code></pre>
  
  <p>And why I need brackets in this case</p>
  
  <pre><code>int num[10], min;
  for (int i = 0; i &lt; 10; i++) {
          cout &lt;&lt; "enter 10 numbers" &lt;&lt; endl;
          cin &gt;&gt; num[i];
  }
  </code></pre>