Value-swapping
The variables x and y each contains a number. Write code to swap the values in x and y. So, after your code runs, whatever was originally in x will be in y, and vice-versa. Feel free to use an additional variable (e.g. z) if necessary (you don't need to declare it).

Log in - Sign up