+ 131
[ASSIGNMENT] ⭐÷÷÷÷÷÷÷Challenge÷÷÷÷÷÷÷÷÷⭐ 👉✍calculator without any operator✍👈. ( OVER)
my first challenge description make a calculator without any operator for addition and subtraction, it's easy but in multiplication it will also multiply decimal number like ( 65*5.7) and negative numbers also like (-32*46) and for division like (21/3) &(3/43)&(53/43) WITHOUT ANY USE OF THIS + - * / and ++ , -- basically i want to know core of coding how operator (which i think it's function) works hence the result is lukar todo ace kartikey sahu all of you guys were good at individual level thanks
117 Answers
+ 96
My try (code without using of: +, -,*, /,++, - -, +=, etc.) :
https://code.sololearn.com/cY3G5MvgPbGi/?ref=app
+ 37
https://code.sololearn.com/cdmTSU2s9DZa/?ref=app
https://code.sololearn.com/c92dXjJmJf29/?ref=app
+ 35
Make use of bitwise operator for addition and subtraction. And Booth's algorithm for signed and unsigned multiplication.
+ 28
congrats buddy @bool1
//☺☺🎊🎊🎊🎉🎉🎉🎊🎉🎉🎊🎉🎊🎉🎊☺☺
+ 26
Only for integers,
Addition without '+':
sub without '-':
multiplication without'*':
division without '/':
(for negative and positive integers)
https://code.sololearn.com/cPniF5G55Jv1/?ref=app
(my try .....)
+ 20
Done guys I hope it will work
https://code.sololearn.com/cU82VzHIwwx7/?ref=app
+ 14
@Bool 1
Congrats on the COTD 👍👏
+ 8
IMMORTAL why did you loose your xp😭
+ 8
I'm new in this.... I can make a calculator but with operator....
https://code.sololearn.com/WM4WPtyxd3z8/?ref=app
+ 8
Here's my answer it returns True with the test
https://code.sololearn.com/cr7ZyTpRNguO/?ref=app
IMPORTANT NOTE : I CAN MAKE IT WITH INPUT BUT SOLOLEARN DOESN'T SUPPORT MULTIPLE INPUTS
EXTRA NOTE : WHY EVERYBODY WANTS TO DOWNVOTE FOR OTHERS TO MAKE THERE ANSWER LOOK STUPID AN THEY DIDN'T EVEN READ THE NOTES 🙅🙇😫😵
+ 8
https://code.sololearn.com/cwIT933HS0JA/?ref=app
mine is in C#
+ 8
My try
I have implementation of truediv, may add multiplication for floats later
https://code.sololearn.com/celkW6POhVgV/?ref=app
+ 8
I updated my code![v2]
+ 7
hmm
use all operator rather than + - * /
+ 7
oh I see
+ 7
print(eval (input ()))
+ 7
impressive guys
keep on posting
i will tell you who is winner
I'm glad if you don't use phyton and ruby
+ 7
thanku all
+ 6
thanku @sahu