N = 13
binary = ""

while N > 0:
    remainder = N % 2
    binary = str(remainder) + binary
    N = N // 2

print(binary)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: