diff --git a/cdboh.py b/cdboh.py new file mode 100644 index 0000000..231dbbd --- /dev/null +++ b/cdboh.py @@ -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.")