Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ DecimalToBinary
Function
DecimalToBinary
Decimal_To_Binary.py:52–55 ·
view source on GitHub ↗
(num)
Source
from the content-addressed store, hash-verified
50
# Function to convert decimal number
51
# to binary using recursion
52
def
DecimalToBinary(num):
53
if
num > 1:
54
DecimalToBinary(num // 2)
55
print(num % 2, end=
""
)
56
57
58
# Driver Code
Callers
1
Decimal_To_Binary.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected