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

FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach

Add your answer:

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