7.4 Convert a decimal number to a binary number (alternative method)

Scratch solution

View solution

This is just one of many possible solutions:

Back to programming challenge