title: Is it OK to use the same variable name in loops?
body: <p>I just started programming in C++, and while coding I started noticing that I had a lot of for loops in my code, then I started thinking. </p>
  
  <p>In for loops, when you create variables like: <code>for (int **i**=1;i&lt;10;i++)</code>, what happens to the <code>i</code> after the loop is done?<br>
  Is it okay to create multiple for loops with the same variable name?<br>
  What about creating variables inside while loops? </p>