ShoreTel Interview Question

Write a Program to convert decimal to binary number?