# 파이썬 배열 선언:
# (개수 지정 x) -> 배열 이름 = []
a = int(input())
b = a // 2
r = a % 2
arr = []
arr.append(r)

while (b != 0):
    a = b
    b = a // 2
    r = a % 2
    arr.append(r)
for i in range(len(arr)):
    print(arr[-(i + 1)], end='') 

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: