Homework: Two Last Digit
Imported By: learncs.online Staff
/ 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.
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.Please Log In to Complete Homework Problems