To convert 18 into the octal number system, follow the given instructions:
Divide 18 by 8. The quotient is 2, and the remainder is 2. This remainder will be the last digit of the octal number.
Now divide the quotient from step 1, i.e., 2 by 8. You will get 0 as the quotient and 2 as the remainder. This remainder will be the first digit of the octal number.
Arranging the remainders from steps 1 and 2, you will get 22, which is the octal representation of 18.
Read more