Capgemini interview question

Write a program of swapping two numbers with and without using 3rd variable?