#include <stdio.h>
int main() {
char ch;
int n;
scanf("%c %d", &ch, &n);
if (ch >= 'A' && ch <= 'Z') {
printf("%c", 'A' + (((ch + n) - 'A') % ('Z' - 'A') - 1));
}
else if (ch >= 'a' && ch <= 'z') {
printf("%c", 'a' + (((ch + n) - 'a') % ('z' - 'a') - 1));
}
else {
printf("%c", ch);
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: