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,
19 days ago
Social Sciences,
19 days ago
Physics,
19 days ago
English,
1 month ago
Social Sciences,
7 months ago