INTEGERS PART 3

How to subract two integers:

Important:
1.NO.     2.NO.    OPERATION

(+)      -      (+)       Subract

(+)      -       (-)       Add

(-)       -       (-)        Subract

Example 1:

(+1) - (+1)

Solution:

 01
 01
 ____
 00

Example 2:

(+1) - (-1)

Solution:

 01
-01.         ( bigger number)
_____
+02       (bigger number sign)

Example 3:

(-1) - (-1)

Solution:

-01
-01
_____
-02

Tips:
While subracting two numbers which are positive,just subract both the numbers and put the (+) sign

If one of the numbers are negative and one positive,add those two numbers and put the greater number sign.

If both are negative,just subract and put the negative sign.

Comments

Popular posts from this blog

LCD Characters

How to connect Bluetooth controller to motor driver?

Bluetooth controlled 16*2 LCD display with Arduino