Computer Science, asked by nifdghdg, 1 year ago

the binary number 10101 into decimal

Answers

Answered by YuvRajDgr8
15
(10101)2 = (21)10

Step by step solution

Step 1: Write down the binary number:

10101

Step 2: Multiply each digit of the binary number by the corresponding power of two:

1x24 + 0x23 + 1x22 + 0x21 + 1x20

Step 3: Solve the powers:

1x16 + 0x8 + 1x4 + 0x2 + 1x1 = 16 + 0 + 4 + 0 + 1

Step 4: Add up the numbers written above:

16 + 0 + 4 + 0 + 1 = 21. This is the decimal equivalent of the binary number 10101

Similar questions