快看我!!!

耦园采雪  •  2年前


include <stdio.h>

include <string.h>

int main() {

char a[10005];
gets(a);
int b = strlen(a);
int x = 0, y = 0;
for (int i = 0; i < b; i++) {
	if (a[i] == 'Z' || a[i] == 'z' ) {
		a[i] = a[i]-25;

	} else if ((a[i] >= 'a' && a[i] <= 'y') || (a[i] >= 'A' && a[i] <= 'Y'))
		a[i] =a[i]+ 1;

}
puts(a);
return 0;

}


评论:

请先登录,才能进行评论