Untitled
Anonymous
plain_text
11/23/2023 12:44 PM
296 B
16
Indexable
#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";
}
}
Editor is loading...
Leave a Comment