How to add two numbers in Vb.Net
Develop Logic in Visual Basic.
Module Module1
Dim a, b, c As Integer
Sub Main()
Console.WriteLine("Enter the number")
a = Console.ReadLine()
Console.WriteLine("Enter the second value")
b = Console.ReadLine()
c = a + b
Console.WriteLine("sum is" & c)
Console.ReadLine()
End Sub
End Module
Develop Logic in Visual Basic.
Module Module1
Dim a, b, c As Integer
Sub Main()
Console.WriteLine("Enter the number")
a = Console.ReadLine()
Console.WriteLine("Enter the second value")
b = Console.ReadLine()
c = a + b
Console.WriteLine("sum is" & c)
Console.ReadLine()
End Sub
End Module
0 comments: