1) Set

`inp`

to binary number.2) Set

`digit`

to `inp`

modulus 10. Output `digit`

3) Set

`inp`

to `inp`

divided by 104) If

`inp`

is not zero, repeat from (2)The only complication is that this generates the digits in the wrong order: least significant first. So you will need to make your "Output Digit" cope with that, and probably store them in reverse order for output at the end. Exactly how you do that isn't complex, but I don't know how far you have got in your course, so I won't suggest anything - you have probably got an idea from the lecture that this was the homework from.