how to get sum of two numbers in vb.net?
Answer Posted / sonia
Sub Main()
Dim x, y, sum As Integer
Console.WriteLine("Enter two numbers")
x = Console.ReadLine()
y = Console.ReadLine()
sum = x + y
Console.WriteLine("Sum = " & sum)
Console.ReadLine()
'& is used for concatenation
End Sub
Is This Answer Correct ? | 75 Yes | 19 No |
Post New Answer View All Answers
What is the difference between convert.tostring and .tostring() method?
How a base class method is hidden?
List the different types of assembly?
What is the significance of delegates. Where should they be used?
What are the different variables in vb.net?
What is the use of internal keyword?
What is trace in vb.net?
How to send xml file on server using http protocol?
How to connect crystal report in vb.net ?
What are the difference between dispose(), close(), exit(), end()?
What is a stream in vb.net?
Can you please explain the difference between vb and vb.net?
What are the technology areas that microsoft.net contains?
What is portable executable?
Explain about rapid application development tool?