# Python program to convert decimal into other number systems
dec = int(input("Enter a Decimal Number: "))
#decimal to binary
print(bin(dec), "in Binary.")
#decimal to octal
print(oct(dec), "in Octal.")
#decimal to Hexadecimal
print(hex(dec), "in Hexadecimal.")
#clcoding.com
Enter a Decimal Number: 9999 0b10011100001111 in Binary. 0o23417 in Octal. 0x270f in Hexadecimal.
0 Comments:
Post a Comment