# 2019120700021 Palindrome judge

include

include

include

include

include

include

using namespace std;
char ch,lett[101];
int main(){
scanf("%s",lett+1);
int a=1,b=strlen(lett+1);
b--;
while(lett[a]==lett[b]&&(b>=1)) {
a++;b--;
}
if(b==0) printf("Yes");
else printf("No");
return 0;

}
void fetc(){
int i=1;
cin>>ch;
while(ch!='.'){
lett[i]=ch;
i++;
cin>>ch;
}
return ;
}

`` `
\ (The FETC \) function is a way to read the string

Guess you like

Origin www.cnblogs.com/liuziwen0224/p/12000536.html