Swap two integers without using any extra memory.
Anonymous
Take two variables a and b than take two values from user or we can also give the values of these like , a = 10; b = 20; then a = a * b; b = a / b; a = a/ b; Now the output is a = 20; b = 10;
Check out your Company Bowl for anonymous work chats.