(Business application: checking ISBN) Use loops to simplify Exercise 3.9.
REF:
(Business: check ISBN-10) An ISBN-10 (International Standard Book Number) consists of 10 digits:
The last digit, is a checksum, which is calculated from the other nine digits using the following formula:
If the checksum is 10, the last digit is denoted as X according to the ISBN-10 convention. Write a program that prompts the user to enter the first 9 digits and displays the 10-digit ISBN (including leading zeros). Your program should read the input as an integer. Here are sample runs:
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.