Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to get sum of two numbers in vb.net?

Answer Posted / sonia

Sub Main()
Dim x, y, sum As Integer
Console.WriteLine("Enter two numbers")
x = Console.ReadLine()
y = Console.ReadLine()
sum = x + y
Console.WriteLine("Sum = " & sum)
Console.ReadLine()
'& is used for concatenation
End Sub

Is This Answer Correct ?    75 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Using VB, how can you change the Mouse Pointer?

1056


What is public assembly?

935


Explain public assembly?

914


What is an application domain? how they get created?

963


What is strong name in .net assembly?

929


Explain the advantage of option strict on?

882


Explain redim keyword?

962


Explain option strict?

898


What is late binding and early binding?

1013


What are the different variables in vb.net?

913


Explain some of the exclusive features which are present in vb?

874


Explain the use of new keyword?

886


Explain the difference between .dll extension and .exe extension files?

1003


Before in my vb app I would just load the icons from dll. How can I load the icons provided by .net dynamically?

932


What do you mean by option strict on?

1081