Capgemini Interview Question

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