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

difference between checkbox vs radiobutton??

2484


what is the advantage of option strict on?

600


What are different types of jit ?

588


What is the difference between a "jagged array" and multidimensional array" ?can anyone show me it practically ?

547


Explain about the feature anonymous type?

617






Explain option strict?

547


Explain the difference between namespace and assembly?

510


Write program in VB.Net with SQL Server and Crystal Reports to develop a small windows application to add,edit,save, search and print Employee Information and send sourcecode as zip file. empcode : .............. empname : .............. dateofjoin : dd/mm/yyyy dateofbirth : dd/mm/yyyy TableName: EmpMaster EmpCode EmpName DOB DOJ TableName: EmpDocs EmpCode DocNo DocName ExpDate

2182


what is common type system?

519


What are the objects in asp.net?

541


What is the significance of delegates. Where should they be used? What are the situations where we require them?

527


Explain about visual basic.net?

657


Name the class which allows an element to be accessed using unique key?

565


Define naming convention?

619


What is public assembly?

562