+ 6

Someone's Challenge

Yesterday someone posted a question. If you were tasked with writing a program to add 2 numbers without using + or -, how would you do it? I assume they want a bitwise approach, but one of my favorite things about programming is there are lots of ways to tackle any problem. I can't find that post anymore, so I will put this here. It isn't bitwise, but it follows the rules. It doesn't use + or - and if you input 2 numbers it will add them. https://code.sololearn.com/c3NFgbWCU5T8/?ref=app

24th Jun 2017, 1:13 PM
LordHill
LordHill - avatar
2 ответов
+ 3
https://code.sololearn.com/ccIO52xbqz12/?ref=app the same but prevent wrong inputs simpler clear
25th Jun 2017, 4:38 PM
Hetbo.net
Hetbo.net - avatar
+ 1
Very nice!
25th Jun 2017, 12:50 PM
Limitless
Limitless - avatar