Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6369be4

Browse files
added program of decimal conversion👩‍💻
Convert Decimal to Binary, Octal and Hexadecimal
1 parent adb239d commit 6369be4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
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)

AltStyle によって変換されたページ (->オリジナル) /