Swap two values
Move two values past each other without losing either one.
What to do
left holds "blue" and right holds "green". Swap them, so that showing left prints green and showing right prints blue.
You will need a third variable to hold one of them while you move the other. Show left first, then right.
Your code Read-only reference Pseudocode
Output
Press Run to see what your code does.
Stuck on the idea rather than the typing? The lesson behind this set is Variables & Data on Learn to Write Code.