Convert the decimal numbers 18 and 27 to binary numbers. with all steps plz
Answers
Answer:
10010
11011
Explanation:
18/2=9 0
9/2=4 1
4/2=2 0
2/2=1 0
1/2=0 1
27/2=13 1
13/2=6 1
6/2=3 0
3/2=1 1
Converting 18 to binary numbers -
Step 1) Divide 18 by 2 to get the Quotient. Keep the Whole part for the next step and set the Remainder aside.
Step 2) Divide the Whole part of the Quotient from Step 1 by 2. Again, keep the Whole part and set the Remainder aside.
Step 3) Repeat Step 2 above until the Whole part is 0.
Step 4) Write down the Remainders in reverse order to get the answer to 18 as a binary.
Here we will show our work so you can follow along:
18 / 2 = 9 with 0 remainder
9 / 2 = 4 with 1 remainder
4 / 2 = 2 with 0 remainder
2 / 2 = 1 with 0 remainder
1 / 2 = 0 with 1 remainder
Then, when we put the remainders together in reverse order, we get the answer. The decimal number 18 converted to binary is therefore:
10010
Converting 27 to binary number -
Step 1: Divide 27 by 2. Use the integer quotient obtained in this step as the dividend for the next step. Repeat the process until the quotient becomes 0.
Divident - Remainder -
27/2 = 13 1
13/2 = 6 1
6/2 = 3 1
3/2 = 1 1
1/2 = 0 1
Step 2: Write the remainder from bottom to top i.e. in the reverse chronological order. This will give the binary equivalent of 27.
Therefore, the binary equivalent of decimal number 27 is 11011.