Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
254 B
0
Indexable
Never
#include <iostream>
#include <string>


int main()
{
	std::string a, b;

	std::cin >> a;
	b = a;
	std::reverse(std::begin(a), std::end(a));
	if (b == a) {
		std::cout << "Yes, palindrom";
	}
	else {
		std::cout << "NO,ne palindrom";
	}
}
Leave a Comment