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

What is internal keyword in .net framework?

812


What do you mean by serialization and deserialization?

716


What is vb.net used for?

733


What is stack used for in vb. Net?

708


What is datatype conversion?

738


Explain the difference between web.config and machine.config and where it will be ?

700


Before in my vb app I would just load the icons from dll. How can I load the icons provided by .net dynamically?

729


What is the advantages of VB.NET?

796


what is the advantage of option strict on?

795


What are the two main parts of .net?

772


Describe about visual basic.net?

738


What are the advantages of migrating to vb.net?

738


difference between checkbox vs radiobutton??

2707


Explain about Visual basic.NET culture?

783


Can you please explain the difference between system.string and system.stringbuilder classes?

769