Computer Science, asked by prasantamail05, 11 months ago

(-18) 1's complement ​

Answers

Answered by shadowsabers03
13

Let's find the binary equivalent of \displaystyle\sf {(18)_{10}.}

\begin {tabular}{r|lr}2&18&\\\cline{2-2}2&9&0\\\cline {2-2}2&4&1\\\cline {2-2}2&2&0\\\cline {2-2}&1&0\\\cline {2-2}\end {tabular}

Hence the binary equivalent is,

\displaystyle\longrightarrow\sf {(18)_{10}=(10010)_2}

Making it as 8 - bit,

\displaystyle\longrightarrow\sf {(18)_{10}=(00010010)_2}

Therefore,

\displaystyle\longrightarrow\sf {\underline {\underline {(-18)_{10}=(11101101)_2}}}

Similar questions