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

What is trace in vb.net?

801


What are the differences between vb.net and c#, related to oops concepts

791


Explain the components of common language runtime.

791


What is sorting in vb?

678


Explain about Visual basic.NET culture?

803


What is code security?

726


Describe about visual basic.net?

769


What is private assembly?

716


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.

2196


write a program to develop a graphic user interface application of marks book with students names and their names.the program should show the following options main menu,add student details,display student details,maximum mark and minimum mark.

1407


What is vb.net used for?

751


Described strong typing and weak typing?

850


What are all the parts of .net framework?

759


Observations between vb.net and vc#.net?

810


How to create a constant in vb.net?

874