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

Answer Posted / rajesh

Sub main()
Dim a , b , c As Integer
System.Console.WriteLine("Enter a")
a = Console.ReadLine
System.Console.WriteLine("Enter b")
b = Console.ReadLine
c=a+b
System.Console.WriteLine("The value is")
MsgBox(c)
End sub

Is This Answer Correct ?    19 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the services provided by common language infrastructure.

722


How many ways the function can return values?

533


Explain the difference between dispose and finalize()?

555


Explain strong name in .net assembly?

527


Explain how to store decimal data in .net?

714






what is intermediate language?

610


Explain the use of option explicit?

598


Compare c# and visual basic.net?

552


Explain about garbage collection?

581


Name some of the keywords used in vb.net?

601


What is the purpose of objects present in asp.net?

576


Explain the difference between thread and process?

510


How to send xml file on server using http protocol?

540


what is diffrence constructor and destructor in vb

556


described weak typing?

587