+ 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
4 odpowiedzi
+ 26
Friends added another code for Multiplication also. Please check that out also.
https://code.sololearn.com/cfrHS9CJr27V/#java
+ 25
Thank you @Dayve. Don't say me sir only my students call me sir, call me whatever you prefer.
+ 13
It does not accepts decimal values:(
Everything else is good:)
+ 10
@Ram I like all your codes bro! or I should say sir!