An ISBN -10 consists of 10 digits: d1, d2, d3, d4, d5, d6, d7, d8, d9, d10. The last digit, d10 is a checksum, whih is calculated from the other nine digits using the following formula: ( d1 * 1 + d2 * 2 + d3 * 3 + d4 * 4 + d5 * 5 + d6 * 6 + d7 * 7 + d8 * 8 + d9 * 9 ) % 11. 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 probram should read the input as an integer.
EX 1 input 013601267 the ISBN-10 number is 0136012671
Ex 2 input 012031997 the ISBN-10 number is 013031997X