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
What are the difference between dispose(), close(), exit(), end()? When do we use them?
Can we use Vb.Net and C# language simultaneously in one .Net application?
described weak typing?
Which is the base class for all the classes in .net framework?
Can you please explain the difference between namespace and assembly?
What is globalization?
What is the feature which is common to all .net languages?
What is late binding and early binding?
Explain about garbage collection?
Explain the difference between an xml "fragment" and an xml "document."
How do you script this scenario in QTP using VB? Verify XML attributes in XML message against XSD and data mapping of fields to Oracle tables? Verify data in XML to data in a defined table?
Name and explain some of the exclusive features which are present in vb?
What is the main purpose of garbage collector?
What is the main use of a namespace?
Explain the difference between dispose and finalize()?