#212. lastDigit
lastDigit
Background
Description
Given two non-negative int values, return true if they have the same last digit, such as with 27 and 57. Note that the % "mod" operator computes remainders, so 17 % 10 is 7.
Format
Input
Output
Samples
7 17
true
6 17
false
3 113
true
Limitation
1s, 1024KiB for each test case.