📜  十进制到二进制 gfg - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:56.769000             🧑  作者: Mango

代码示例3
def decimalToBinary(n):
    return bin(n).replace("0b", "")
   
# Driver code
if __name__ == '__main__':
    print(decimalToBinary(8))
    print(decimalToBinary(18))
    print(decimalToBinary(7))