Reads in a 13-digit product code one digit at a time, and calculates the check digit.
Demonstrates how to implement that activity at https://csunplugged.org/en/topics/error-detection-and-correction/unit-plan/product-code-check-digits/ Entering one digit at a time isn't the best interface, but it simplifies the program for learners.