Answer:
69
Explanation:
We are given a 1's complement of a number.So to convert it to the original number we have again take the 1's complement of the given 1's complement to convert it to the original number.We can do that by converting all 0's to 1's adn all 1's to 0's.
1's complement= 10111010
original number=01000101
Then to convert the binary number to the decimal number we have multiply each bit with the respective exponent of 2.The exponent of the LSB is 0 and it increases as we move to MSB by 1.
So the calculations are as following:-
(01000101)₂ = (0 × 2⁷) + (1 × 2⁶) + (0 × 2⁵) + (0 × 2⁴) + (0 × 2³) + (1 × 2²) + (0 × 2¹) + (1 × 2⁰) = (69)₁₀
12g + 9g simplified is 21g
Print(“Hello World!”)
I hope this helps :) I’m sry is this what you wanted or were you looking for something else because I’m willing to help either way.