write a VB.net program to swap two numbers

Answer Posted / vineetha.balan

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

Is This Answer Correct ?    23 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does assert() method do In VB.NET

725


Tell me which namespace are used for accessing the data?

720


What is the difference between Namespace and Assembly?

791


Describe about visual basic.net?

738


Explain jagged array in vb.net?

750


What is normal jit?

798


What is the difference between vb 6 and vb.net?

854


What is the significance of delegates. Where should they be used?

713


What is the difference between static or dynamic assemblies?

767


What is a preprocessor directive in vb.net?

737


described weak typing?

779


What is the differnce between managed code and unmanaged code?

737


difference between control and component more than one differences

2656


What is sorting in vb?

671


What are option strict and option explicit?

1110