Skip to content

Commit cd50bb0

Browse files
Merge pull request #1 from DrVirus1/patch-2
Create cdboh.py
2 parents 99cf7d7 + 2d2fb08 commit cd50bb0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

cdboh.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)