DWITE Online Computer Programming Contest, February 2006, Problem 3
The final digit of a Universal Product Code is a check digit computed so
that summing the even-numbered digits, plus

For example, take the UPC 070617006092
. The sum of the even numbered
digits is
The input will contain five lines of data. Each line will contain a
The output will contain five lines of data. Each line will contain the UPC with the correct check digit.
Sample Input
Copy
070617006093
036000291455
123456789097
246809753116
543210987665
Sample Output
Copy
070617006092
036000291452
123456789098
246809753116
543210987667
Comments