0 like 0 dislike
in Examples, Exercises and Projects by (7k points)

1 Answer

0 like 0 dislike
by (7k points)
 
Best answer

a=int(input())

for i in range(a//2):

    rem=a%2

    a=a//2

    print(rem,end='')

Register fast for winter training program at Goeduhub Technologies. We are providing winter training in AI-ML, IoT, Python, Hadoop and PLC-SCADA.

[[ CALL - 07976731765 ]]

...