Computer Science, asked by EbrahimMamawala, 2 months ago

Multiply 6*4 and 9*7 by using binary numbers​

Answers

Answered by harshitha202034
10

Answer:

>>> 2 | 6

>>> 2 | 3 - 0

>>> | 1 - 1

Binary value of 6 : 110

>>> 2 | 4

>>> 2 | 2 - 0

>>> | 1 - 0

Binary value of 4 : 100

6 × 4 = 24

>>> 2 | 24

>>> 2 | 12 - 0

>>> 2 | 6 - 0

>>> 2 | 3 - 0

>>> | 1 - 1

Binary value of 24 : 11000

110 × 100

= 11000

Decimal value :

6 × 4

= 24

Note that multiplying by numbers like 10, 100 and 1000 is very similar to working with base 10 numbers.

>>> 2 | 9

>>> 2 | 4 - 1

>>> 2 | 2 - 0

>>> | 1 - 0

Binary value of 9 : 1001

>>> 2 | 7

>>> 2 | 3 - 1

>>> | 1 - 1

Binary value of 7 : 111

9 × 7 = 63

>>> 2 | 63

>>> 2 | 31 - 1

>>> 2 | 15 - 1

>>> 2 | 7 - 1

>>> 2 | 3 - 1

>>> | 1 - 1

Binary value of 63 : 111111

1001 × 111

= 111111

Decimal value :

9 × 7

= 63

Similar questions