fineanmol / Hacktoberfest2024

Make your first Pull Request on Hacktoberfest 2024. Don't forget to spread love and if you like give us a ⭐️
https://fineanmol.github.io/Hacktoberfest2024/
GNU General Public License v3.0
2.38k stars 7.57k forks source link

program to convert decimal number #7814

Open riyaa060 opened 3 hours ago

riyaa060 commented 3 hours ago

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 commented 3 hours ago

@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 commented 1 hour ago

Can you assign this issue to me

maniranjan2023 commented 1 hour ago

can u assign this issue to me