0

How to add two numbers without addition operator in java??

7th Jan 2019, 4:21 PM
Mehboob Ali Shah
Mehboob Ali Shah - avatar
4 Answers
+ 2
You can use bitwise operators to add two values.
7th Jan 2019, 7:45 PM
Michal
Michal - avatar
+ 1
maybe a - (-b)?ā˜ŗ
8th Jan 2019, 5:35 AM
Š˜Š³Š¾Ń€ŃŒ ŠÆŠŗŠ¾Š²ŠµŠ½ŠŗŠ¾
Š˜Š³Š¾Ń€ŃŒ ŠÆŠŗŠ¾Š²ŠµŠ½ŠŗŠ¾ - avatar
0
But bitwise can't add two values
8th Jan 2019, 4:07 AM
Mehboob Ali Shah
Mehboob Ali Shah - avatar
0
Yeah bro you are right i also used that techniques in my program
8th Jan 2019, 6:54 AM
Mehboob Ali Shah
Mehboob Ali Shah - avatar