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

What is difference between import system.data.sqlclient,system.data.oledb?

1020


What are the shared variables?

1039


What is the difference between static or dynamic assemblies?

1012


Write a VB.Net console program to check whether a number is perfect or not.

7801


What do you mean by option strict on?

1121


What is the difference between .dll extension and .exe extension files?

1106


What is the use of console application?

1103


List the two main parts of .net?

1064


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

2496


What is the importance of a Button control?

1299


Explain code security?

921


What is strong typing and weak typing?

986


what's ArrayList in .Net (VB.Net or C#).What's the advantageous using ArrayList.

1023


What is code security?

1021


What do you mean by serialization and deserialization and it's use.

1046