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 are the advantages of migrating to vb.net?

981


Explain about globalization?

861


How many languages are supported by .net?

954


Can you please explain the difference between value and reference types?

919


How can I extract the formated word(bold,italic,underline,font,color etc) from the msword file.?

1011


Explain jagged array in vb.net?

979


What is the difference between c# and vb.net?

996


Explain about delegate?

891


Explain the difference between vb 6 and vb.net?

973


How to achieve Polymorphism in VB.Net?

1064


thak you Mr Govind for replying to my question. My next question is that how to retrieve image stored in an SQL server table and assign it to any image control or picture control using VB.net

2087


What is sorting in vb?

897


What are the difference between structure and class?

1163


What is the difference between value and reference types?

1076


Define serialization in .net?

1146