Monday 20 August 2012

How to use For loop in vb.net

Example of For loop in Vb.Net
Module Module1
    Dim n, a, b, c, i As Integer
    Sub Main()
        Console.WriteLine("Enter the number")
        n = Console.ReadLine()
        a = 0
        b = 1
        For i = 0 To n
            c = a + b
            Console.WriteLine(c)
            a = b
            b = c
        Next
        Console.ReadLine()
    End Sub

End Module
Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: