The codes use a scanner to take user input for an integer, prints it out to the user, and store it in scores.