A four-digit number backwards
Task
The program reads a positive four-digit number and prints it backwards - **using only the // and % operators**, not by working with text.
For 4728 the program prints 8274. Print the result as a number, so for 1200 it prints 21.
Examples
Input
4728
Expected output
8274
Rules
Use only the
//and%operators - no conversion to text and no indexing.
After you submit, 6 hidden tests will also check your solution: zeros at the end, 1000, all nines, 1234, a zero inside, the same both ways.
You need to know
Python starts the first time you run code.
Ctrl+Enter runs the program. Tab indents. Press Esc, then Tab, to leave the editor.
Input (stdin)
Each line = one call to input().
Output
Hints
Try it yourself first. Each hint reveals a little more - and lowers the reward a little.
Signed out, hints are free - but no XP is awarded either.
Solution
The solution unlocks after the last hint.