Return the last digit of a positive whole number. For 4728 that is 8. Dividing by 10 and taking the remainder gets you there.
int lastDigit(int n)
Examples
There are also 3 hidden tests you can't see. Solve the problem, not the examples.