Computer Science, asked by tanujakodalichowdary, 8 months ago

Explain about 9's and 10's
complement ? with a suitable examples?​

Answers

Answered by kumar24jun
1

Explanation:

The 9's complement is used to find the subtraction of the decimal numbers. The 9's complement of a number is calculated by subtracting each digit of the number by 9.

Example:- suppose we have a number 1223. To find 9's Complement, subtract each digit of this number from 9 -> 9999-1223 = 8776.

The 10's complement is also used to find the subtraction of the decimal numbers. The 10's complement of a number is calculated by subtracting each digit by 9 and then adding 1 to the result. Simply, by adding 1 to its 9's complement we can get its 10's complement value.

Example:- suppose we have a number 1223. To find 10's Complement, we find the 9's complement of the number 1223 that is 9999-1223= 8776, and now we will add 1 to the result. So the 10's complement of the number 1223 is 8776+1=8777.

(I hope this will be marked as Brainliest)

Answered by fahmadkhan316
1

Answer:

10's complement of a decimal number can be found by adding 1 to the 9's complement of that decimal number. It is just like 2s compliment in binary number representation. For example, let us take a decimal number 456, 9's complement of this number will be 999-456 which will be 543. Now 10s compliment will be 543+1=544.

       NOW MARK ME AS BARINLIEST

Similar questions