Appinventiv Interview Question

write a code to convert a digit into binary equivalent