InterviewSolution
| 1. |
Explain How To Convert Decimal To Binary And Its Formula? |
|
Answer» Its very simple ,just divide the decimal number by 2 and note down the remainder(which will be either 1 or 0) ,then again divide the quotient obtained in the first step and note down the remainder repeat the step till u get 0 as quotient n write the remainders in reverse order that means the LAST step remainder will B E the LEFTMOST digit of the binary equivalent of GIVEN decimal number. Its very simple ,just divide the decimal number by 2 and note down the remainder(which will be either 1 or 0) ,then again divide the quotient obtained in the first step and note down the remainder repeat the step till u get 0 as quotient n write the remainders in reverse order that means the last step remainder will b e the leftmost digit of the binary equivalent of given decimal number. |
|