+ 33

{Code} Addition using bitwise operations + Multiplication using shift & add {Code}

Friends check out my new code, which add two number without using Arithmetical operator, increment or decrement, or testing if x < y. I don't have try-catch expression for negative integer and floating point values but will add later. The only way I can improve is through your comments, so please give your valuable suggestion. Multiplication : https://code.sololearn.com/cfrHS9CJr27V/#java

14th Mar 2017, 4:03 PM
Ram chandra Giri
Ram chandra Giri - avatar
4 odpowiedzi
+ 26
Friends added another code for Multiplication also. Please check that out also. https://code.sololearn.com/cfrHS9CJr27V/#java
14th Mar 2017, 3:53 PM
Ram chandra Giri
Ram chandra Giri - avatar
+ 25
Thank you @Dayve. Don't say me sir only my students call me sir, call me whatever you prefer.
14th Mar 2017, 2:30 PM
Ram chandra Giri
Ram chandra Giri - avatar
+ 13
It does not accepts decimal values:( Everything else is good:)
13th Mar 2017, 12:56 PM
Dev
Dev - avatar
+ 10
@Ram I like all your codes bro! or I should say sir!
14th Mar 2017, 2:27 PM
Dev
Dev - avatar