+ 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.

18th Feb 2018, 3:29 PM
Divya Mohanraj
Divya Mohanraj - avatar
1 Antwort
+ 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.
18th Feb 2018, 3:34 PM
Divya Mohanraj
Divya Mohanraj - avatar