โœ๏ธ

Reverse a number

Hard๐Ÿท๏ธ Loops๐Ÿ“‚ Loops
๐Ÿงฉ The problem

TAKE a positive whole number N and DISPLAY its digits reversed (1234 โ†’ 4321).

Examples

  • Input: 1234 โ†’ 4321

โœ๏ธ Write your pseudocode

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

โ† All practice problems