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

Answer Posted / ambar

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 ?    10 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between datatable and dataset?

657


Explain some of the exclusive features which are present in vb?

592


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

627


how to get dynamic control array position or its index position?

2125


What is the difference between c# and vb.net?

643






Name the class which allows an element to be accessed using unique key?

638


What is break mode? What are the options to step through code?

620


Explain manifest?

575


Define manifest?

647


Which classes a dll can contain?

616


What is jagged array in vb.net?

740


What do you mean by option strict on?

744


What is econo-jit?

691


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

727


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

700