CJCoding With Joseph

Reverse a Three-Digit Number

Declare int n = 123. Using arithmetic on its digits (no loops or strings), build the reversed number, store it in reversed, 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.