Go Down

Topic: 3 bits sum (Read 101 times) previous topic - next topic

deeck

sum of 3 bits, code or example please

:(

jremington


Groove

0+0+0=0
0+0+1=1
0+1+1=2
1+1+1=3
Per Arduino ad Astra

el_supremo

Tsk, Tsk.
0+1+1=10
1+1+1=11

Pete

Groove

Quote
1+1+1=11
1+1+1=0b11

Tsk tsk
Per Arduino ad Astra

robtillaart

#5
Nov 21, 2015, 10:31 am Last Edit: Nov 21, 2015, 10:31 am by robtillaart
not enough requirements. How much bits is the input / answer max?

Mind you another 3 bits sum could be  1012 + 0112 = 0002
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

UKHeliBob

"There are 10 types of people in the World.  Those that understand binary and those that don't"
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy