Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
252 B
0
Indexable
Never
#include <iostream>
#include <string>
using namespace std;
int main()
{
	string a, b, c="";
	int i;
	cin >> a;
	for ( i = a.size()-1; i > -1 ; i--)
	{
		c += a[i];
	}
	if (c == c) {
		cout << "palindrom";
	}
	else cout << "no";
	

}