C-study/08-1/1/c0604.c

21 lines
266 B
C
Raw Normal View History

2021-12-14 14:38:15 +00:00
#include<stdio.h>
#include<string.h>
int main(){
int n;
char a[50];
scanf("%s",a);
n=strlen(a)-1;
for(int i=0;i<n;i++){
if(a[i]!=a[n-i]){
printf("No");
return 0;
}
}
printf("Yes");
return 0;
}