There are 10 ways to do this problem…
Binary is used by computers but is little understood by mere mortals like us! The best thing we can do is create a binary converter!
So the converter will take in a string of 1s and 0s and output the denary value.
However, what if the number is in 2’s complement. We better output both just to be sure. An example run of the program would be –
Binary value - 1100
This is 12 (normal) or -4 (2's complement)
Write the program which will do this conversion.
You need to log in or create an account to submit code!












