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

How do you call a stored procedure in Visual Basic?

1154


Explain the difference between system.string and system.stringbuilder classes?

993


Explain about delegate?

910


How to execute VB.NET PROJECTS,VB6.0 PROJECTS AND write their test cases.Need Reply Urgently

2506


What is the main use of a namespace?

983


What are the different types of applications supported in .net (or) .net framework?

944


Sir, what code to store data from vb net sql server 2008 to 2005 and at the same time in order to validate the data entered is not the same, but there have been contacts in the module. Examples such as the log table that I created, the user name as the primary key.

2199


What is normal jit?

1051


What is strong name in .net assembly?

974


Explain the components of common language runtime.

1128


what is the advantage of option strict on?

1066


What is the difference between readonly variable and constant variable?

1030


Name some of the features of C# which are not present in VB.NET?

981


Define clr?

1056


Name some of the features present in vb 2005?

959