#include<iostream.h>
#include<string.h>
int main(){
const int length=100;
char s[length]=" ";
cout<<"input the string:\n";
cin.getline(s,length,'\n');
int i=strlen(s);
for(int m=0;m<i/2;m++)
if(s[m]!=s[i-m-1]){
cout<<s<<"不是对称的"<<endl;
return 0;
}
cout<<s<<"是对称的"<<endl;
return 0;
}
#include<string.h>
int main(){
const int length=100;
char s[length]=" ";
cout<<"input the string:\n";
cin.getline(s,length,'\n');
int i=strlen(s);
for(int m=0;m<i/2;m++)
if(s[m]!=s[i-m-1]){
cout<<s<<"不是对称的"<<endl;
return 0;
}
cout<<s<<"是对称的"<<endl;
return 0;
}