Untitled

 avatar
unknown
c_cpp
2 years ago
254 B
3
Indexable
#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";
	}
}
Editor is loading...
Leave a Comment