Write the following decimal number in binary.
222
The decimal number 222 can be written in binary as 11011110.
To convert the decimal number 222 to binary, follow these steps:
Step 1: Divide 222 by 2 and write down the remainder.
222 ÷ 2 = 111, remainder 0
Step 2: Divide the quotient from step 1 (111) by 2 and write down the remainder.
111 ÷ 2 = 55, remainder 1
Step 3: Divide the quotient from step 2 (55) by 2 and write down the remainder.
55 ÷ 2 = 27, remainder 1
Step 4: Divide the quotient from step 3 (27) by 2 and write down the remainder.
27 ÷ 2 = 13, remainder 1
Step 5: Divide the quotient from step 4 (13) by 2 and write down the remainder.
13 ÷ 2 = 6, remainder 1
Step 6: Divide the quotient from step 5 (6) by 2 and write down the remainder.
6 ÷ 2 = 3, remainder 0
Step 7: Divide the quotient from step 6 (3) by 2 and write down the remainder.
3 ÷ 2 = 1, remainder 1
Step 8: Divide the quotient from step 7 (1) by 2 and write down the remainder.
1 ÷ 2 = 0, remainder 1
Step 9: Write down the remainders in reverse order. The binary representation of 222 is:
11011110