Friday, August 22, 2014

COJ 2196 - Even? Odd?

If the last digit of a number is divisible by 2 it means that the entire number is also divisible by 2. The rest is easy, input it as a string, take the last char and check.


       FULL SOURCE CODE

No comments:

Post a Comment