0
How to write a program to convert a binary no to a decimal no.
program
2 Answers
+ 1
Integer.parseInt(integerAsString, radix)
where the integerAsString would be something like:
"1010"
and the radix would be 2 to indicate binary. So the output will be 10.
0
Maybe something like this?
Please read the comment for instructions.
https://code.sololearn.com/cmySYgxy5Bkl/?ref=app