VB.NET Program to generate Fibonacci Triangle

In this blog we will see VB.NET Program to generate Fibonacci Triangle.

In this program, we are getting input from the user and printing the fibonacci series for the given number of times.

Let’s see the example for VB.NET Program to generate Fibonacci Triangle.

Imports System

Module Program
Sub Main(args As String())
Dim i, c, n, j As Integer, a As Integer = 0, b As Integer = 1
Console.Write(“Enter the limit: “)
n = Integer.Parse(Console.ReadLine())

For i = 1 To n
a = 0
b = 1
Console.Write(b & vbTab)

For j = 1 To i – 1
c = a + b
Console.Write(c & vbTab)
a = b
b = c

End Sub
End Module



If This article helped you. Humble request to you please donate small amount only 5 Ruppes or 1 Ruppes so that I can help the needy poor people. Send amount this phone upi id : 8800846247@ybl or google pay 8800846247. Thank you from my bottom of heart.

Leave a Reply

Your email address will not be published.