Click here to Skip to main content
15,911,030 members

Comments by Brian Robertson (Top 1 by date)

Brian Robertson 23-Aug-11 23:56pm View    
1. convert numbers to binary eg
4 =001
2 =01
2. add the above together to get 011
3. then convert 011 to get 6
4. (6, 6) would give 12 (works for all numbers which are the same.
5. the program works up to a point eg: 4 = 001, 2=01, I know 01 goes correctly that's why my answer is 2. the problem is the one in 001 is not added so I can get 011.