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

Answer Posted / banshi

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 ?    124 Yes 34 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the advantages of vb.net?

529


Explain the differences between vb.net and c#, related to oops concepts?

523


Is vb.net dead?

529


How a base class method is hidden?

619


How to execute VB.NET PROJECTS,VB6.0 PROJECTS AND write their test cases.Need Reply Urgently

2007






What is the top .net class that everything is derived from?

620


What is vb.net used for?

558


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

545


What is the use of errorprovider control?

599


Explain nested classes?

561


What are the different types of Lock available in Visual Basic?

642


What are the features of c# which are not present in vb.net?

658


Write the role of new keyword?

619


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 ?

2246


Define clr?

553