+ 1
Check the tens place if it is even print it
the logic is to print even number not only seeing the one's digit .for example 247 which is odd but in tens place it is having even number 4 so print it.
1 Respuesta
+ 1
eg:27
27/10=2(it will return quotient)
2mod2=0 .....answer is it will print number 27 though it is odd but tens place is even.