Write a program to interchange 2 variables without using the third one.

  • a = (a + b) - (b = a)
     
  • a = a + b ;
    b = a - b ;
    a = a - b ;