Fedora Project

Create a decimal to binary converter

Binary numbers are very important in digital world since every data processed and dealt with, is in binary. Thus our computers need a decimal to binary converter to understand the numbers and be able to deploy them in a function.You can use this method to convert any decimal number to binary:

  1. Divide the number by 2.
  2. Get the integer quotient for the next iteration.
  3. Get the remainder for the binary digit.
  4. Repeat the steps until the quotient is equal to 0.

Or use this guide from instructables.
You can use any programming language but the submitted file must not be compiled.(.py for python, .cpp for C++ etc...)

Task tags

  • code
  • binary converter

Students who completed this task

AkN1554, mehulrao, Samarth, tejasmehta6, Prasanna, Suhaas D, SDAH, Ng, JoshDaBosh, Calamity210, VimForLaNy, aditya_r, mg360, dev!caelo, lucas :), EmperorAj, pollob1563

Task type

  • code Code
close

2019