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
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
0 comments: