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

Which classes a dll can contain?

616


Name and explain some of the exclusive features which are present in vb?

625


How many ways the function can return values?

633


What is the difference between static or dynamic assemblies?

642


how many server control present in .net

2375






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

700


What are the features of c# which are not present in vb.net?

727


What is jagged array in vb.net?

740


I Am Developing A project where I can send Message from One Computer to Another Computer With The Help Of LAN.Already I Have developed..It is working Fine With The Details Of ..TO,FROM,REF No,DATE,BODY...Now I Want To Add Attachments part in the same projects...How Can I Send Attachment File & How To Send It..I Am Working in VB.Net 2005 With out Any database. Can Any One Help me ??How To Write Code??Plz Send me a copy to my Mail also...I Dont Need Any Software Available in The Internet...Plz refer me The Code in VB.Net maloy.adhikari@in.com

2292


Name some different types of control?

604


How to create a constant in vb.net?

707


Explain an assembly and its use?

603


What is the purpose of an Assembly?

704


How to connect crystal report in vb.net ?

645


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

1987