// cypher2.c -- alters input, preserving non-letters #include #include // for isalpha() int main(void) { char ch; while ((ch = getchar()) != '\n') { if (isalpha(ch)) // if a letter, putchar(ch + 1); // display next letter else // otherwise, putchar(ch); // display as is } putchar(ch); // display the newline return 0; }