Implement the Int.lastDigit(): Int function.
Please note that we are testing the function on non-negative numbers. You can make a function that works with negative numbers as well, it's up to you.
Implement the Int.lastDigit(): Int function.
Please note that we are testing the function on non-negative numbers. You can make a function that works with negative numbers as well, it's up to you.
Create a free account to access the full topic