Sagot :
Answer:
11111111
Step-by-step explanation:
the number 255 can be written in binary as 11111111.
Step 1) Divide 255 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 255 as a binary.
255 / 2 = 127 with 1 remainder
127 / 2 = 63 with 1 remainder
63 / 2 = 31 with 1 remainder
31 / 2 = 15 with 1 remainder
15 / 2 = 7 with 1 remainder
7 / 2 = 3 with 1 remainder
3 / 2 = 1 with 1 remainder
1 / 2 = 0 with 1 remainder
Then, when we put the remainders together in reverse order, we get the answer. The decimal number 255 converted to binary is therefore:
11111111