Octal number-
- A number which expressed in the base-8 numeral system.
- Octal number range is 0 to 7
Decimal number -
- A number which expressed in the base-10 numeral system.
- Decimal number range is 0 to 9
Conversion of Decimal to octal number
Example-
Decimal number - 10
Its octal equivalent is 1010
Decimal number - 11
Its octal equivalent is 1011
program -
print("Octal equivalent is - "+oct(int(input("Enter Decimal numbern"))))
Enter Decimal number
10
Octal equivalent is - 0o12
Enter Decimal number
45
Octal equivalent is - 0o55