9 lines
227 B
C
9 lines
227 B
C
#include <stdio.h>
|
|
int main() {
|
|
char input, prev, next;
|
|
input = getchar();
|
|
prev = input - 1;
|
|
next = input + 1;
|
|
printf("ASCII number: %d, Previous char: %c, Next char: %c", input, prev, next);
|
|
return 0;
|
|
} |