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

Answer Posted / kaviyarasu

Imports system.console
Module Module1
Sub main()
Dim a, b, c As Integer
Console.WriteLine("Ente a:")
a = ReadLine()
Console.WriteLine("Enter b:")
b = ReadLine()
c = a + b
Console.WriteLine("The Result is:" & c)
ReadLine()
End Sub

End Module

Is This Answer Correct ?    15 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sealed class?

603


Explain about garbage collection?

577


Using VB, how can you change the Mouse Pointer?

637


Explain the difference between datatable and dataset?

552


What is the feature anonymous type?

522






What is the difference between custom control and user control?

548


Explain about the keyword must inherit?

579


Why do you need Lock in Visual Basic?

611


What is the significance of delegates. Where should they be used? What are the situations where we require them?

532


What are the advantages of VB.NET?

566


What is writeline in vb.net?

525


difference between control and component more than one differences

2411


Explain about the feature anonymous type?

617


What’s the difference between private and shared assembly?

689


How can we remove handlers at run time?

533