When writing binary numbers . . .
The first place has the value of 1.
The second place has the value of 2.
The third place has the value of 4.
The fourth place has the value of 8.
'1 0 1 1 ' has (fourth place) + (second place) + (first place) = 8 + 2 + 1 = decimal 11 .
Chat with our AI personalities
The number 4693 in binary is 1001001010101
All I know is that when a number is negative, you convert the decimal into binary and if it is negative you put 1111 before the binary digits.
The number 6 in binary is 110
The binary values is 10110101.
write a c++ program to convert binary number to decimal number by using while statement