Kotlinlearncs.online LogoJava
Return to List

Homework: Two Last Digit

Imported By: Geoffrey Challen
/ Version: 2021.4.0

Given two non-negative int values, return true if they have the same last digit, such as with 27 and 57. Note that the % operator computes remainders, so 17 % 10 is 7.

Related Lessons

Stuck? You may find these lessons helpful: