Sollicitatievraag bij TPS

Write a function which tells the input is even or not without using modulus and built-in functions?

Antwoord op sollicitatievraag

Anoniem

24 apr 2017

Convert input in binary, if the least significant bit is zero than your input is even.