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

Answer Posted / aman

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 ?    5 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Thank you for replying to my Question regarding Barcodes in VB.net. My next question is that how to use Barcode Fonts in VB.net I need a small code to Generate Barcodes in VB.net from a string of Values. This is the only problem i am left with in my project. Any body can help me please.

2053


Explain the difference between datatable and dataset?

566


what is the need for dynamic controls in vb.net? i would like to know for what purpose should we create the controls dynamically? please give the answer in simple words.

1977


Explain about visual basic?

560


What is the exact defination of object?

586






Explain about Visual basic.NET culture?

604


Explain i.tostring method?

530


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

644


What languages does the .net framework support?

550


What is the difference between value and reference types?

553


What is deep copy?

578


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

528


What is the difference between datagrid and gridview?

527


What are the advantages of migrating to vb.net?

582


What are option strict and option explicit?

802