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 the purpose of an Assembly?

602


What are the difference between dispose(), close(), exit(), end()? When do we use them?

537


Explain the observations between vb.net and vc#.net?

530


How do you script this scenario in QTP using VB? Verify XML attributes in XML message against XSD and data mapping of fields to Oracle tables? Verify data in XML to data in a defined table?

2555


What is meant by jagged arrays?

579






What are the various open source tool available for VB.NET?

563


Explain the difference between web.config and machine.config and where it will be ?

500


What do you understand by vb.net?

614


How do you define a read only property in a class module?

527


What is the difference between compiler and interpreter?

550


Described strong typing

572


Explain about rapid application development tool?

514


Explain the advantage of option strict on?

529


Explain about the performance of visual basic?

589


Which class allows an element to be accessed using unique key?

521