write the steps to convert decimal number into binary number . dont cheat if you know it then write
because i will check it
Answers
Answered by
0
Explanation:
Take decimal number as dividend.
Divide this number by 2 (2 is base of binary so divisor here).
Store the remainder in an array (it will be either 0 or 1 because of divisor 2).
Repeat the above two steps until the number is greater than zero.
Print the array in reverse order (which will be equivalent binary number of given decimal number).
hope it will help you
Similar questions