Last digit

Report a typo

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.

Write a program in Kotlin





___

Create a free account to access the full topic