Add two numbers without using "+" Operator. ( Python)
Answers
Answered by
0
Answer:
23-123=100
Explanation:
i hope it will help you
Answered by
0
Explanation:
def add_without_plus_operator(a, b):
while b != 0:
data = a & b
a = a ^ b
b = data << 1
return a
print(add_without_plus_operator(2, 10))
print(add_without_plus_operator(-20, 10))
print(add_without_plus_operator(-10, -20))
Similar questions
Geography,
2 months ago
Math,
2 months ago
Social Sciences,
2 months ago
English,
5 months ago
Social Sciences,
11 months ago
History,
11 months ago