diff --git a/Python Program to Convert Decimal to Binary, Octal and Hexadecimal b/Python Program to Convert Decimal to Binary, Octal and Hexadecimal new file mode 100644 index 0000000..231dbbd --- /dev/null +++ b/Python Program to Convert Decimal to Binary, Octal and Hexadecimal @@ -0,0 +1,7 @@ +# Python program to convert decimal into other number systems +dec = 344 + +print("The decimal value of", dec, "is:") +print(bin(dec), "in binary.") +print(oct(dec), "in octal.") +print(hex(dec), "in hexadecimal.")