title: Using for loop inside declaration of variable
body: <p>Can I use for loop inside declaration a variable?</p>
  
  <pre><code>int main() {
      int a = {
          int b = 0;
          for (int i = 0; i &lt; 5; i++) {
              b += i;
          }
          return b;
      };
  
      printf("%d", a);
  }
  </code></pre>