i got this program to work (yea!!!!!!!!!!!!!!), except there is a tiny error (for the book number and check digit the answers come out negative... how can i fix this?
here's my code:
/* ISBN program */
#include <stdio.h>
int main()
{
int W, XXX, YYYYY, Z;
printf("Enter ISBN: ");
/*changed commas for dashes*/
scanf("%d-%d%d%d-%d%d%d%d%d-%d", &W, &XXX, &YYYYY, &Z);
/*specified the length of the ints */
printf("Language: %d\n", W);
printf("Publisher: %3d\n", XXX);
printf("Book Number: %5d\n", YYYYY);
printf("Check Digit: %d\n", Z);
return 0;
}