/*****************scan.c - This program has incorrect******************* ********results due to a character and numeric scanning problem.********/ #include /* printf, scanf definitions */ int main(void) { char letter_1, letter_2, letter_3; /*three letters */ int year; /* current year */ printf("Enter the current year and press return> "); scanf("%d", &year); printf("Enter a 3-letter nickname and press return> "); scanf("%c%c%c", &letter_1, &letter_2, &letter_3); printf("Welcome, %c%c%c. %d is a great year to study C! \n", letter_1, letter_2, letter_3, year); return (0); }