decimal = int(input("Enter the decimal number: ")) binary = " " q = decimal while q > 0: rem = q % 2 q = q // 2 binary = str(rem) + binary print(binary)
To embed this project on your website, copy the following code and paste it into your website's HTML: