n=int(input("Enter the decimal number = "))
while n!=0:
d=n%2
print(d,end="")
n=n//2
#The number is to be reversed for eg: (144)base16 = (10010000)base2 but in program the result appears (00001001)base2
Hello user, This is a blog that provides you various coding ideas and projects in Python language.