I looked all over the internet looking for a program that converts a BINARY value (01111100) to a DECIMAL value (124).
Can someone help me whit the code plz?
I don't know how to start
Start at binary digit on the far right: multiply it by one, add to the total
One to the left: multiply it by two, add to the total
One to the left: multiply it by four, add to the total
One to the left: multiply it by eight, add to the total
One to the left: multiply it by sixteen, add to the total
...
...
and so on until you've done all the binary digits.
Are you kidding? Have you ever made a hello world program on C at least? scanf, gets both functions are used to read from standard input stream. (CONSOLE)