How to Swap two integer variable without temp variable in vb.net
  • How to Swap two integer variable without temp variable in vb.net
  • 1 Comment sorted by


  • Dim a As Integer = 4
    Dim b As Integer = 3

    a = a + b
    b = a - b
    a = a - b

    MessageBox.Show("a is = " + a.ToString + " and b is equal" + b.ToString)

    for further details and related topics http://www.codecorner.somee.com/

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week