โœ๏ธ

Swap two values

Medium๐Ÿท๏ธ Variables๐Ÿ“‚ Sequence, Variables & Expressions
๐Ÿงฉ The problem

TAKE A and B, swap their values, then DISPLAY A and B.

Examples

  • Input: 1, 2 โ†’ Output: 2 1

โœ๏ธ Write your pseudocode

Press Run to watch it step by step, and Run tests to check it against every test case.

โ† All practice problems