0

How can we add a and b without using mathematical operators and sum() function

In python or java

22nd Sep 2019, 2:41 PM
Tasdiq Shaikh
Tasdiq Shaikh - avatar
2 Antworten
+ 1
You can use binary operators such as AND, OR, XOR, and NOT to perform binary addition
22nd Sep 2019, 3:03 PM
Rora
+ 1
Here is a code for addition: https://code.sololearn.com/cEiQ2h02164T/?ref=app You can search for binary arithmetic on google/youtube. Read also the lessons about bitwise operators.
22nd Sep 2019, 9:18 PM
Denise Roßberg
Denise Roßberg - avatar