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

DECIMAL NUMBER TO OCTAL NUMBER

n=int(input("Enter the decimal number = "))
while n!=0:
    d=n%8
    print(d,end="")
    n=n//8
#The OUTPUT number is to be reversed for eg: (144)base16 = (220)base8 but in program the result appears (022)base8