Fibonacci Numbers in VB.Net
In this tutorial, I will teach you how to create a sequence of Fibonacci Numbers in vb.net. This method has the ability to create a series of Fibonacci numbers depends of the terms that you’ve enter in the input box. Then it will be displayed in the Listbox. See the procedure below.
Open Microsoft Visual Studio 2015 and create a new windows form application. After that, do the form just like this.
Double click the button to fire the
click event handler of it and do the following code for creating a sequence of Fibonacci Numbers.
- Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
- Dim input = InputBox(“Enter The Terms”)
- Dim a As Integer = 0
- Dim b As Integer = 1
- Dim c As Integer
- Dim i As Integer
- ListBox1.Items.Add(“Fibonacci Series is : ”)
- For i = 1 To input - 2
- c = a + b
- a = b
- b = c
- End Sub
For any questions about this article. You can contact me @