Untitled

Anonymous
plain_text
11/17/2022 6:02 PM
336 B
22
Indexable
#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";
	

}
Editor is loading...