Same Digit
Warmup
Write a function that takes two non-negative integers as arguments. Return whether they share the same last digit.
HINT: The %
operator computes remainders
Example
sameDigit(10,430); //returns true
Write a function that takes two non-negative integers as arguments. Return whether they share the same last digit.
HINT: The %
operator computes remainders
Example
sameDigit(10,430); //returns true