def convertToBinary(n):
if n > 1: convertToBinary(n // 2) print(n % 2, end='') return n dec = int(input()) bin = convertToBinary(dec) print("")
def convertToBinary(n):
if n > 1: convertToBinary(n // 2) print(n % 2, end='') return n dec = int(input()) bin = convertToBinary(dec) print("")
Comments
Post a Comment