how to find the unit digit of a number