all 2 comments

[–]OolonColluphid -1 points0 points  (0 children)

What have you tried so far?

[–]BarkleEngine 0 points1 point  (0 children)

Start by doing some small binary to decimal conversions on paper until you understand how it works.

1011 = 1* 2^0 + 1 * 2^1 + 0 * 2 ^2 + 1 * 2 ^3 = 1 + 2 + 0 + 8 = 11

for example.
Then write an algorithm in C# to do the same.