Convert 8 bit binary into number

Given a set of 1's and 0's, output its corresponding number translated from binary.

IN

10000110

OUT

134

IN

10000010

OUT

130

IN

10101101

OUT

173

IN

10100010

OUT

162

IN

01000000

OUT

64

IN

01011001

OUT

89

IN

11100110

OUT

230

IN

10100001

OUT

161

IN

11000101

OUT

187

IN

10000100

OUT

132

Test 9 should be 197, not 187.

Sun Feb 18 14:07:59 2018


Leave a comment

Parsed as Markdown

Login to leave a comment