Skip to content

Commit c169a10

Browse files
authored
Initial File
Convert Decimal to binary with Recursion
1 parent 1dce053 commit c169a10

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Decimal_binary

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def find(dec_num):
2+
if(dec_num==0):
3+
return
4+
else:
5+
find(int(dec_num/2))
6+
print(dec_num%2,end="")

0 commit comments

Comments
 (0)