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 is the ruby interface generator?

774


write a program to develop a graphic user interface application of marks book with students names and their names.the program should show the following options main menu,add student details,display student details,maximum mark and minimum mark.

1385


What are the parts of the visual basic control?

718


Define clr?

731


Explain about the ruby interface generator?

749


What are the different types of Lock available in Visual Basic?

852


What is stack used for in vb. Net?

708


What is the feature which is common to all .net languages?

702


What do you mean by option strict on?

875


What is an arraylist?

808


Can you please explain the difference between namespace and assembly?

745


what is intermediate language?

783


Explain clr?

754


Explain private assembly?

687


How many languages are supported by .net?

730