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


Please Help Members By Posting Answers For Below Questions

What is the use of system.diagnostics.process class?

564


What is an application domain? how they get created?

583


Explain the advantage of option strict on?

527


What is an assembly and its use?

542


What is econo-jit?

612






How to retrieve images in sql server database through vb.net?

519


Explain nested classes?

556


Explain about delegate?

513


Explain about jagged arrarys ?

506


how to get dynamic control array position or its index position?

2045


What are the different variables in vb.net?

518


Why do we use ansi keyword?

566


Explain about branching logic control in vb.net?

535


What is the feature which is common to all .net languages?

467


Explain public assembly?

548