Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
220 B
1
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
	string f;
	cin >> f;
    if (f[0] == f[4] && f[1] == f[3]) {
        cout << "palindrom" ;
    }
    else {
        cout << "ne palindrom";
    }
}

Leave a Comment