Skip to content
CampusEduX

Last Digit and the Rest

Easyjava
Learn the Concept: Arithmetic Operators

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>

Related Problems

Input (stdin)

Output

Run your code to see output here...