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 how to send xml file on server using http protocol?

573


Explain the use of new keyword?

636


Is vb net a scripting language?

635


Name some of the features of C# which are not present in VB.NET?

644


Explain the use of console application?

612






Can you please explain the difference between int and int32?

649


What do you mean by Redim in VB.NET?

756


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

638


What is the difference between a "jagged array" and multidimensional array" ?can anyone show me it practically ?

631


Explain cts?

623


what is common language specification?

594


Explain how to achieve polymorphism in vb.net?

626


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

727


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

722


What are option strict and option explicit?

909