We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 99cf7d7 + 2d2fb08 commit cd50bb0Copy full SHA for cd50bb0
1 file changed
cdboh.py
@@ -0,0 +1,7 @@
1
+# Python program to convert decimal into other number systems
2
+dec = 344
3
+
4
+print("The decimal value of", dec, "is:")
5
+print(bin(dec), "in binary.")
6
+print(oct(dec), "in octal.")
7
+print(hex(dec), "in hexadecimal.")
0 commit comments