/
rnekrasov
/
Python
Обзор
Документация
Войти
/
rnekrasov
/
Python
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
decimal to binary.py
12 строк
273 B
Officialahmed
Added .py extension
01 авг 2023, 04:40
01 авг 2023, 04:40
f1468a5
Код
Авторство
О чём код?
def decimalToBinary(num): """This function converts decimal number to binary and prints it""" if num > 1: decimalToBinary(num // 2) print(num % 2, end='') # decimal number number = int(input("Enter any decimal number: ")) decimalToBinary(number)