Support our Blind Hand Charity by donating at 9818291723. Your contribution has the potential to bring about significant positive change for humanity.

Search This Blog

MY PROGRAMMES

Sunday, April 9, 2023

OCTAL NUMBER TO BINARY NUMBER

n=int(input("Enter the octal number = "))
s=('000','001','010','011','100','101','110','111')
while n!=0:
    d=n%10
    print(s[d],end="")
    n=n//10