C-study/05/4/c0604.c

21 lines
266 B
C
Raw Normal View History

2021-11-17 12:00:07 +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;
}