Problem Description

Convert decimal number to binary (base 2) representation.
Real Life: How computers store all data internally.

Step-by-Step Logic:
1. Take decimal number
2. Divide by 2 repeatedly
3. Store remainder each time (will be 0 or 1)
4. Print remainders in reverse order
5. That's your binary number

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next