Python program to convert decimal to binary using function

0
12
def dec_to_binary(num): #This function converts decimal number to binary and print 
    if num > 1:
        dec_to_binary(num // 2)
    print(num % 2, end='')
#____main_____
number = int(input("Please enter any decimal number: "))
dec_to_binary(number)

    Output 1:
            Please enter any decimal number: 20
            10100
    Output 2:
            Please enter any decimal number: 64
            1000000

इन्हें भी देखें।

Python Programs के लिये यहाँ click करें।

 

 

 

 

Python program to convert decimal to binary using function write a python program to convert decimal to binary using function write a program to convert decimal to binary using function in python write a program to convert decimal to binary program to convert decimal to binary using function program to convert decimal to binary using function in python program to convert decimal to binary in python convert decimal to binary program in python convert decimal to binary using function convert decimal to binary using function in python decimal to binary program decimal to binary program in python write a program to convert decimal to binary in python write a program to convert decimal to binary python program to convert decimal to binary write a python program to convert decimal to binary how to convert decimal to binary in python using function decimal to binary in python using function function to convert decimal to binary python function to convert decimal to binary in python python program for converting decimal to binary python program to convert decimal number to binary python program to convert decimal into binary wap to convert decimal to binary in python python program to convert decimal to binary number Python program to convert decimal number to binary using function

program to convert decimal number to binary in python

 

 

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here