Friday, October 2, 2020

Fibonacci Sequence in VB6

  A simple fibonacci sequence in vb.net that I wrote that will ask the user to give an integer value and then it will generate the fibonacci sequence in the listview in Visual Basic 6.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.


My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.

Program Listing


Dim a As Integer
Dim b As Integer
Dim fib As Integer

Private Sub Command1_Click()
        a = 0
        b = 1
        Dim userinput, i As Integer
        userinput = Val(Text1.Text)
        i = userinput
        List1.AddItem (1)
        Do
            fib = a + b
            a = b
            b = fib
            List1.AddItem (fib)
            i = i + 1
        Loop While fib < i
End Sub

Private Sub Command2_Click()
Text1.Text = ""
List1.Clear
Text1.SetFocus
End Sub

Private Sub Command3_Click()
End
End Sub

No comments:

Post a Comment