title: Make For Loop Stop Counting Every 5 iterations C#
body: <p>I'm using WinForms. In my forms I have a button. With every click of the button the program counts numbers. I'm using a for-loop to count the numbers between 1-500. How do i make my for loop stop every 5 counts?</p>
  
  <p>My Code below counts to 5 then it stops. That is not what i want the loop to do. The loop should remember what number it left of previously then count from there, below is an example.</p>
  
  <p><Strong>For loop Couting Example: </Strong> <em>Click</em>: 1 2 3 4 5 <Strong>(Stop)</Strong> <em>You click the button again</em>: 6 7 8 9 10 <Strong>(Stop)</Strong> <em>You click button again</em>: 11 12 13 14 15...etc</p>
  
  <pre><code>        for(int i = 0; i &lt;= 500 ; i++)
          {
              Debug.Print("Value of i: " + i.ToString());               
              if(i == 5)
              {
                  break;
              }                         
          }
  </code></pre>