Every book published by international publishers should carry an International Standard Book Number (ISBN). It is a 10 character 4 part number as shown below.
0-07-041183-2 The first part denotes the region, the second represents publisher, the third identifies the
book and the fourth is the check digit. The check digit is computed as follows:
Sum = (1X first digit) + (2X second digit) + (3X third digit) + – – – – + (9X ninth digit).
Check digit is the remainder when sum is divided by 11. Write a program that reads a given
ISBN number and checks whether it represents a valid ISBN.