โ Back to Variables
Question 274
Reverse a Three-Digit Number
Reverse a Three-Digit Number
Declareint n = 123. Using arithmetic on its digits (no loops or strings), build the reversed number, store it inreversed, then print it: 321
Expected Output:
321
Topics:
Variables
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.