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

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

Is This Answer Correct ?    14 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you define a read only property in a class module?

880


Explain the advantages of vb.net?

898


Can you please explain the difference between thread and process?

915


Explain the difference between namespace and assembly?

927


What are the two main parts of .net?

950


What is the advantages of VB.NET?

978


What is strong name in .net assembly?

921


Explain how the .net framework performs automatic memory management.

945


Explain how to achieve polymorphism in vb.net?

896


Why should you use delegate?

870


What do you mean by option strict on?

1071


Explain how to store decimal data in .net?

1128


What are all the parts of .net framework?

916


What is the maximum size of the textbox?

949


Explain the difference between int and int32?

876