how to write 21 in binary language.
Answers
Explanation:
0b10101 is the as 0 and 1 are used
Answer:
10101
Explanation:
First, note that decimal numbers use 10 digits (0, 1, 2, 3, 4, 5, 6, 7, 8, and 9) and binary numbers use only 2 digits (0 and 1).
it is important to know the name of the parts of a division problem. In a problem like A divided by B equals C, A is the Dividend, B is the Divisor and C is the Quotient.
The Quotient has two parts. The Whole part and the Fractional part. The Fractional part is also known as the Remainder.
Step 1) Divide 21 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 21 as a binary.
Now
21 / 2 = 10 with 1 remainder
10 / 2 = 5 with 0 remainder
5 / 2 = 2 with 1 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 21 converted to binary is therefore:
10101
PLEASE MARK AS BRAINLIEST