Assume a=10 b=15 what will be the value of a^b
Answers
Answered by
7
Answer:
value of a^b = 5
Explanation:
convert these decimal values to binary.
a = 10 = (1010)₂
b = 15 = (1111)₂
a^b will give result as 1 whenever the inputs are different.
so, 1 0 1 0
1 1 1 1
_______
a^b = 0 1 0 1
---------------
therefore a^b = ( 0101)₂ = 5
Similar questions