How to Add Two Numbers in Visual Basic.NET



module m
sub main()
dim a,b,c as integer
console.write("Enter First No : ")
a=console.readline()
console.write("Enter Second No : ")
b=console.readline()
c=a+b
console.writeline("First No : " & a)
console.writeline("Second No : " & b)
console.writeline("Result : "&c)
end sub
end module

In the above program we have declare three variables ( a,b,c) And First and Second variable  store two values accept by the user and Third variable sum of two numbers.

Comments

Popular posts from this blog

How to make a text to speech program in vb.net