How to add two numbers without addition operator in java?? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponses
+ 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