Project: ISBN-10 Check
The ISBN-10 number used to uniquely identify a book published before 2007 utilizes a check digit in its last place to catch data entry errors. Write a program that checks an ISBN-10 number and prints whether or not it is a valid number.
See [[International_Standard_Book_Number|International Standard Book Number]]
Output
$ rustc ISBN10Check.rs
error: expected one of `.`, `;`, `?`, `else`, or an operator, found `,`
--> ISBN10Check.rs:14:21
|
14 | let mut s:isize = 0, t:isize = 0;
| ^ expected one of `.`, `;`, `?`, `else`, or an operator
error: aborting due to previous error