Computer Science, asked by jannat167, 1 year ago

d. Decimal to Hexadecimal
i 22
ii. 330
iii. 840
answer

Answers

Answered by shagunsingh717
1

Answer:

Divide the decimal number by 16. Treat the division as an integer division.

Write down the remainder (in hexadecimal).

Divide the result again by 16. Treat the division as an integer division.

Repeat step 2 and 3 until result is 0.

The hex value is the digit sequence of the remainders from the last to first.

Explanation:

Divide the decimal number by 16. Treat the division as an integer division.

Write down the remainder (in hexadecimal).

Divide the result again by 16. Treat the division as an integer division.

Repeat step 2 and 3 until result is 0.

The hex value is the digit sequence of the remainders from the last to first.

Similar questions