Розбір
Let be the input character. Print the characters and .
Algorithm realization
Read the input symbol .
scanf("%c", &c);
Print the symbols and .
printf("%c %c\n", c - 1, c + 1);
Python realization
Read the input symbol .
c = input()
Compute and print the symbols and .
prev = chr(ord(c) - 1) next = chr(ord(c) + 1) print(prev, next)