5.2 13 digit product codes: Calculate the last digit (entered one digit at a time)

Scratch solution