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

Is it necessary to have SQL server installed in your computer in order to create a service based database in vb.net?

1863


What are different types of jit ?

589


What do you mean by option strict on?

662


What is pre-jit?

539


What is option strict?

517






What are the shared variables?

552


What is the difference between value and reference types?

545


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

499


What is a static variable?

559


What is the difference between static or dynamic assemblies?

559


What are the difference between dispose(), close(), exit(), end()?

513


Explain about rapid application development tool?

514


Which is the tool which can convert visual basic old version to .net compatibility version?

529


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

550


What are the different types of applications supported in .net (or) .net framework?

515