how to get sum of two numbers in vb.net?

Answer Posted / aman

Sub Main()
Dim x, y As Integer
Console.Write("Enter value of x: ")
x = Console.ReadLine()
Console.Write("Enter value of y: ")
y = Console.ReadLine()
Console.Write("Sum x+y = ")
Console.WriteLine(x + y)
Console.ReadLine()
End Sub

Is This Answer Correct ?    5 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which dll is used for microsoft .net run time?

557


Explain the difference between dispose and finalize()?

559


What are the technology areas that microsoft.net contains?

555


i have two class that contain's two methods as same name in derived class i have to call these two methods what will happen at run time ?

2244


What is strong typing and weak typing?

547






What are the advantages of an assembly?

604


Can you please explain the difference between vb and vb.net?

462


what's ArrayList in .Net (VB.Net or C#).What's the advantageous using ArrayList.

571


What is the ruby interface generator?

558


How can we store decimal data in .net?

548


What is the differnce between managed code and unmanaged code?

543


What is the class that allows an element to be accessed using unique key?

547


What is the main purpose of garbage collector?

509


Explain nested classes?

561


Explain how to send xml file on server using http protocol?

501