Given three ints, a b c, return true if two or more of them have the same rightmost digit. The ints are non-negative. Note: the % "mod" operator computes the remainder,
e.G. 17 % 10 is 7.
Answers
Answered by
2
Answer:
Step-by-step explanation:
Given three ints, a b c, return true if two or more of them have the same rightmost digit. The ints are non-negative. Note: the % "mod" operator computes the remainder,
a % 10 = X
b % 10 = Y
c % 10 = Z
Logic :
if ( X = Y)
TRUE
Elseif ( X = Z)
TRUE
Elseif ( Y = Z)
TRUE
Else
FALSE
Similar questions
Math,
5 months ago
Geography,
5 months ago
Chemistry,
5 months ago
Biology,
11 months ago
Accountancy,
1 year ago