title: How do i alter my program to use a for loop instead of a do until loop?
body: <p>I have to write a race program between a coyote and a roadrunner. Both start at 1 and the finish line is 5. Each take turns moving until they reach 5. I can't figure out how to do this using a for loop instead of a do until loop please help.</p>
  
  <pre><code>Private Sub btnStart_Click(sender As Object, e As EventArgs) Handles btnStart.Click
          Dim moves, mover, r, c, d As Integer
          Dim rand As New Random
          r = 1
          c = 1
  
  
          Do Until c = 5 Or r = 5
  
              mover = rand.Next(2)
              If mover = 0 Then
                  moves = rand.Next(1, 11)
  
                  If moves &lt;= 6 Then
                      r = r + 1
  
                  ElseIf moves &gt; 6 Then
                      r = r + 2
                  End If
  
              End If
  
              If mover = 1 Then
                  moves = rand.Next(1, 11)
  
                  If moves &lt;= 6 Then
                      c = c + 1
  
                  ElseIf moves &gt; 6 Then
                      c = c + 2
                  End If
              End If
  
          Loop
  
          If r = 5 Then
              lblWinner.Text = ("Roadrunner is the winner!")
          End If
          If c = 5 Then
              lblWinner.Text = ("Coyote is the winner!")
  
          End If
  
      End Sub
  </code></pre>