#include<iostream>
using namespace std;
bool isSymmetric(char str[])
{
int length = strlen(str);
int i;
for(i = 0; i < length/2; i++)
if(str[i] != str[length - i - 1])
return false;
return true;
}
void print(bool b)
{
if(b)
cout << "is symmetric" << endl;
else
cout << "is not symmetric" << endl;
}
int main()
{
char str1[] = "abcba";
char str2[] = "abcb";
print(isSymmetric(str1));
print(isSymmetric(str2));
return 0;
}