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 jagged array in vb.net?

740


What is strong name in .net assembly?

623


What is the difference between a "jagged array" and multidimensional array" ?can anyone show me it practically ?

630


Which properties are used to bind a DataGridView control?

661


Which dll is used for microsoft .net run time?

624






What is the main use of a namespace?

616


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

588


What is the difference between datagrid and gridview?

595


Why should you use delegate?

540


what is difference between web.config and machine.config and where it will be ?

569


What is the top .net class that everything is derived from?

700


What is the difference between custom control and user control?

632


Explain how can we remove handlers at run time?

619


Explain the difference between dispose and finalize()?

636


Explain an assembly and its use?

603