1# Python program to convert decimal into other number systems
2dec = 344
3
4print("The decimal value of", dec, "is:")
5print(bin(dec), "in binary.")
6print(oct(dec), "in octal.")
7print(hex(dec), "in hexadecimal.")
8
1dec =13
2print(bin(dec),oct(dec),hex(dec)) #prints decimal,octal,hexadecimal value of 13