Thursday, May 30, 2013

Python: Covert from Decimal to Binary

print "Program for converting Decimal to Binary by Everday-Geeks"
n = input("Please enter a dec number:")
b = ''
while n > 0:
        b = str(n % 2) + b
        n >>= 1
print "Binary =",b

Result:


1 comment:

  1. Python: Covert From Decimal To Binary ~ Everyday-Geeks >>>>> Download Now

    >>>>> Download Full

    Python: Covert From Decimal To Binary ~ Everyday-Geeks >>>>> Download LINK

    >>>>> Download Now

    Python: Covert From Decimal To Binary ~ Everyday-Geeks >>>>> Download Full

    >>>>> Download LINK XR

    ReplyDelete