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

what is commom language runtime?

557


What are all the parts of .net framework?

530


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

577


Explain about visual basic.net?

662


i have two class that contain's two methods as same name in derived class i have to call these two methods what will happen at run time ?

2245






Explain an assembly and its use?

532


List the different types of assembly?

548


Explain convert.tostrin?

638


What are jagged arrarys ?

576


How to connect crystal report in vb.net ?

580


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

507


What is the main purpose of garbage collector?

512


Name some different types of control?

534


Explain jagged array in vb.net?

568


Allowed program to auto-correct the database when loading a presentation.

1750