title: How to code Visual basic for-loop step increment?
body: <p>I can't get my project work. I need to show a working schedule who has to work every 3rd weekend with start from week number 1. Assume that the last week of the year is 52. </p>
  
  <p>The program should show like this:</p>
  
  <pre><code>     Week 1         Week 4         Week 7
       Week 10        Week 13        Week 16
       Week 19        Week 22        Week 25
       Week 28        Week 31        Week 34
       Week 37        Week 40        Week 43
       Week 46        Week 49        Week 52
  </code></pre>
  
  <p>But my program shown only Week 4</p>
  
  <p>This is my code. How I should fix this?</p>
  
  <pre><code>If choice = 1 Then
  
          Dim colCount As Integer = 0
          Dim weekCounterStart As Integer = 1
          Dim increment As Integer = 3
          Dim maxWeekCounter As Integer = 52
          Dim weekCounter As Integer
  
  
  
          For weekCounter = weekCounterStart To maxWeekCounter Step increment
  
              weekCounter = weekCounter + increment
              Console.Write(vbTab &amp; "Week " &amp; weekCounter &amp; Environment.NewLine)
              Exit For
  
              'If it is three columns, write a new line.
              If (colCount &gt;= 2) Then
  
                  colCount = 0
                  Console.WriteLine()
  
              Else
                  colCount = +1
              End If
  
  
          Next weekCounter
  </code></pre>