Untitled
unknown
plain_text
3 years ago
252 B
6
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...