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
Hello user, This is a blog that provides you various coding ideas and projects in Python language.