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

thak you Mr Govind for replying to my question. My next question is that how to retrieve image stored in an SQL server table and assign it to any image control or picture control using VB.net

1703


What is vb.net used for?

552


Can you please explain the difference between dataset and datareader?

555


What are all the differences between dispose and finalize()?

559


What are the advantages of an assembly?

602






What is the exact defination of object?

577


Explain about the feature anonymous type?

619


What is jagged array in vb.net?

637


Is vb net a scripting language?

547


What are jagged arrays ?

574


List the different types of assembly?

548


What are the differences between c# and visual basic.net?

531


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

521


What is the difference between Namespace and Assembly?

581


Did vb6 support multi-threading ?

540