|
Question 281915: what are the ways to find a digit in a given value to be odd or even?
example:
if 123 is a number then its answer will be 2=even and 1&3=odd.pls provide me some trick or explanation??
Answer by Alan3354(69443) (Show Source):
You can put this solution on YOUR website! If it's divisible by 2 with no remainder, it's even.
eg, 14/2 = 7, so 14 is even.
17/2 = 8 1/2, so it's odd.
-------------------------
You can look at the 1's digit. If it's even, the number is even.
xxxxxxx2 is even.
xxxxx3 is odd.
|
|
|
| |