how to get sum of two numbers in vb.net?
Answer Posted / shaker
Dim X As Integer
Dim Y As Integer
Dim Sum As Integer
Sub Main()
Console.WriteLine("Enter the number for X")
X = Console.ReadLine()
Console.WriteLine("Enter the number for Y")
Y = Console.ReadLine()
Sum = X + Y
Console.WriteLine("The sum of Two numbers is: " & Sum)
Console.ReadLine()
End Sub
End Modu
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Which class allows an element to be accessed using unique key?
What is an assembly and its use?
How to retrieve images in sql server database through vb.net?
how to get dynamic control array position or its index position?
what's ArrayList in .Net (VB.Net or C#).What's the advantageous using ArrayList.
What is DLL HELL in VB.NET
What is different between web.config and machine.config and where it will be ?
Name the tool which can convert visual basic old version to .net compatibility version?
Explain how the .net framework performs automatic memory management.
Explain about visual basic?
what is the need for dynamic controls in vb.net? i would like to know for what purpose should we create the controls dynamically? please give the answer in simple words.
What are all the parts of .net framework?
What is option strict?
How can we remove handlers at run time?
What is difference between inline and code behind?