From ac4a4bf9827029cd48d3b4d2e51bd506d972538e Mon Sep 17 00:00:00 2001 From: MOHAMMED SHAHEER V K <72807702+kavyaS143@users.noreply.github.com> Date: Sun, 30 Oct 2022 14:42:01 +0530 Subject: [PATCH] Create decimal converter.py kindly merge with hacktoberfest label --- decimal converter.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 decimal converter.py diff --git a/decimal converter.py b/decimal converter.py new file mode 100644 index 0000000..231dbbd --- /dev/null +++ b/decimal converter.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.")