#include
int main()
{
char ch;
printf("Input a character:");
scanf("%c", &ch);
while (ch < 'A' || ch > 'Z') {
printf("Input error! Please input a character(A~Z):");
scanf("%c", &ch);
}
if (ch == 'Z')
printf("%c %c\n", 'A', ch + 32);
else
printf("%c %c\n", ch + 1, ch + 32);
return 0;
}