mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-12-03 17:26:21 +00:00
20 lines
278 B
C
20 lines
278 B
C
|
#include <stdio.h>
|
||
|
|
||
|
int main() {
|
||
|
char c;
|
||
|
|
||
|
scanf("%c", &c);
|
||
|
|
||
|
if (c >= 'a' && c <= 'z') {
|
||
|
c += 3;
|
||
|
if (c > 'z') c -= 26;
|
||
|
} else if (c >= 'A' && c <= 'Z') {
|
||
|
c += 3;
|
||
|
if (c > 'Z') c -= 26;
|
||
|
}
|
||
|
|
||
|
printf("%c\n", c);
|
||
|
|
||
|
return 0;
|
||
|
}
|