title: For loop does not run C++
body: <p>The output is <code>21</code> meaning it has entered the <code>printBoard</code> function and has exited it. I have tried making a test variable and doing something with it in the for loop, but it didn't do anything, so therefore for some reason the for loop does not execute.</p>
  <pre><code>#include &lt;iostream&gt;
  
  
  void printBoard(){
      std::cout &lt;&lt; &quot;2&quot;;
      for(int i = 0; i == 8;i++){
          for(int j = 0; j == 8;j++){
              std::cout &lt;&lt; &quot;| - |&quot;;
          }
          std::cout &lt;&lt; &quot;| - |&quot; &lt;&lt; std::endl;
      }
      std::cout &lt;&lt; &quot;1&quot;;
  }
  
  int main(){
      printBoard();
  }
  </code></pre>