Computer Prog.
Computer Prog.
: First, we will discuss Binary Addition, Binary addition is the simplest method to add any of the binary
numbers. It can be calculated easily if we know the following rules.
:0+0=0 :1+0=1
:0+1=1 : 1 + 1 = 10
: SO, HERE’S THE EXAMPLE NUMBER 1
: Let us take 10010 + 01010
0+0=0 1 + 0 = 1 and 1 + 0 = 1
1 + 1 = 0 carry 1 0+1=1
Then 1 + 0 = 1
: Therefore, the binary 10010 + 01010 = 11100.
: EXAMPLE NUMBER 2.
: let us take 11011 + 10110
1+0=1 1 + 1 = 0 carry 1
1 + 1 = 0 carry 1 and 0 + 0 = 0
then 1 + 1 = 0 carry 1 then 1 + 1 = 0 carry 1
and 0 + 1 = 1 and bring down 1.
: Therefore, the binary 11011 + 10110 = 110001.
: That’s all for the binary addition. Don’t forget the following rules to solve easily.
NOTE:
DON’T FORGET THE
FOLLOWING RULES
TO SOLVE EASILY.