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

Name some of the features present in vb 2005?

570


What are jagged arrays ?

572


what is the advantage of option strict on?

602


Define clr?

545


i am attending to US consulate i kept my projects on vb.net ,please help me what questions will be ask on vb.net in us consulate

1912






What is an application domain? how they get created?

583


What would you do to remove microsoft visual basic name space?

508


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

559


What are the difference between structure and class?

560


What is the importance of a Button control?

866


What are the differences between vb.net and c#, related to oops concepts

572


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?

2554


What are the advantages of vb.net and c#?

637


Observations between vb.net and vc#.net?

569


List the types of authentication?

533