answersLogoWhite

0

It's basically the algorithm to break a number down to digits. Then each digit would be represented as a natural binary number on its own.
To break it down to digits, get a remainder after division with 10 (that's the last digit), then divide the number by 10 to remove that digit. Repeat until there are digits, and store each one into an array (or print them to screen without storing).

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
RossRoss
Every question is just a happy little opportunity.
Chat with Ross
EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra

Add your answer:

Earn +20 pts
Q: Algorithm for convert decimal to bcd representation?
Write your answer...
Submit
Still have questions?
magnify glass
imp