Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

program to convert decimal number #7814

Open
riyaa060 opened this issue Oct 13, 2024 · 6 comments
Open

program to convert decimal number #7814

riyaa060 opened this issue Oct 13, 2024 · 6 comments

Comments

@riyaa060
Copy link

Function to convert decimal number

to binary using recursion

def DecimalToBinary(num):

if num >= 1:
    DecimalToBinary(num // 2)
print(num % 2, end = '')

Driver Code

if name == 'main':

# decimal value
dec_val = 24

# Calling function
DecimalToBinary(dec_val)
@fineanmol
Copy link
Owner

@riyaa060 Please Star ⭐️ the repo to earn 'hacktober-accepted' label for the event.\nMeanwhile, if you want to work on this issue, please raise a PR, and we will review and merge it.

@saksham-tomer
Copy link

Can you assign this issue to me

@maniranjan2023
Copy link

can u assign this issue to me

@Akilalochana
Copy link

Hey @fineanmol can u assign this issue to me.

@riyaa060
Copy link
Author

okay @fineanmol

@riyaa060
Copy link
Author

Done @fineanmol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants