Convert a number to its two?s compliment and back ?
First convert a number into binary format. Then keep last binary number as it is & complement all others.
Eg:- 1101001
2’s Compl:0010111
First convert a number into binary format. Then keep last binary number as it is & complement all others.
Eg:- 1101001
2’s Compl:0010111