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 / basudev_kan

Module Basudev
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)
Ssytem.console.ReadLine()
End Sub
End Module

Is This Answer Correct ?    83 Yes 42 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between inline and code behind?

1045


List the two main parts of .net?

1074


what is the need for dynamic controls in vb.net? i would like to know for what purpose should we create the controls dynamically? please give the answer in simple words.

2379


What is the source code for display the picture in button click event?

1155


Using VB, how can you change the Mouse Pointer?

1107


How to achieve Polymorphism in VB.Net?

1071


What is the size of .net object?

1038


How to send xml file on server using http protocol?

997


Explain cls?

1019


What is the role of new keyword?

1031


Name the two main parts of .net?

943


Describe about visual basic.net?

998


How to connect crystal report in vb.net ?

932


Explain about the feature anonymous type?

991


What is misl code?

1080