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...

write a VB.net program to swap two numbers

Answer Posted / vineetha.balan

Module Vineetha
Sub Main()
dim a,b,te as integer
System.console.writeline("Enter The Two Number:")
a=System.Console.ReadLine()
b=System.console.ReadLine()
System.console.WriteLine("The Two Number is:{0} And
{1}:",a,b)
te=a
a=b
b=te
System.console.WriteLine("After Swapping Value is:{0} and
{1}:",a,b)
System.console.ReadLine()
End Sub
End Module

Is This Answer Correct ?    23 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why should you use delegate?

870


Explain the advantages of migrating to vb.net?

962


How can we store decimal data in .net?

939


what is diffrence constructor and destructor in vb

910


When do you use virutal keyword?

940


Explain the services provided by common language infrastructure.

1132


What would you do to remove microsoft visual basic name space?

894


What is the difference between manifest and metadata?

976


What are the advantages of an assembly?

1012


What is the strong name in .net assembly?

953


Is it necessary to have SQL server installed in your computer in order to create a service based database in vb.net?

2291


How a base class method is hidden?

1020


Explain about branching logic control in vb.net?

893


What is an assembly and its use?

943


What is the use of errorprovider control?

958