title: How to generate Fibonacci series?
body: <p>I am a beginner for programming and dealing with concept of visual basic 2010 to generate the following Fibonacci series output that will get the next number by adding two consecutive numbers</p>
  
  <p>I have tried that by creating variables like bellow</p>
  
  <pre><code>Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      Dim a As Integer = 0
      Dim b As Integer = 1
      Dim fib As Integer = 0
  
      Do
        fib = a + b
        a = b
        b = fib
        Label1.Text = Label1.Text + fib.ToString &amp; ControlChars.NewLine
      Loop While fib &lt; 55
    End Sub
  End Class
  </code></pre>