Domanda di colloquio di Infosys

write a program to convert decimal to binary without using any built-in functions. Write an sql query using joins