Given a positive integer , find its last digit. For example, the last digit of is .
This seems simple, but it teaches you a pattern used everywhere: extracting digits using modulo and division.
Try to solve it yourself first. What operation gives you the last digit?