computer science
#convert the decimal following
Answers
Answer:
265=411
135=111
436=1B4
Explanation: for dec to octal
Write the given decimal number
If the given decimal number is less than 8 the octal number is the same.
If the decimal number is greater than 7 then divide the number by 8.
Note the remainder, we get after division
Repeat step 3 and 4 with the quotient till it is less than 8
Now, write the remainders in reverse order (bottom to top)
The resultant is the equivalent octal number to the given decimal number.
for converting decimal to binary
Divide the number by 2.
Get the integer quotient for the next iteration.
Get the remainder for the binary digit.
Repeat the steps until the quotient is equal to 0.
for dec to hexa
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.
hoping that it will help you!