Math, asked by naveenkolli8979, 11 months ago

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 amitnrw
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