Skip to content
C

Last Digit and the Rest

Easyjava

Read a non-negative integer and split it into its last digit and everything before it, using % 10 and / 10.

Input: one non-negative integer.

Output: one line: <last digit> <the number without its last digit>

Input (stdin)

Output

Run your code to see output here...