Monday 20 August 2012

Sum of 1..10 Number in Vb.Net Using For Loop

How to Find Sum Of two Numbers In Vb.Net
Logic To Develop Code.
Module Module1
    Dim n, i, sum As Integer

    Sub Main()
        sum = 0
        Console.WriteLine("Enter the number")
        n = Console.ReadLine()
        For i = 1 To 10
            sum = sum + n
            Console.WriteLine(sum)
        Next i
        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: