Using Numbers:
Division /
7 / 4 = 1
-7 / 4 = -1
7 / -4 = -1
-7 / -4 = +1
Remainder %
7 % 4 = 3
-7 % 4 = -3
7 % -4 = 3
-7 % -4 = -3
Using Signs:
Division /
+ / + = +
- / + = -
+ / - = -
- / - = +
Remainder %
+ % + = +
- % + = -
+ % - = +
- % - = -
No comments:
Post a Comment