✏️

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