Question #107670

Write a function that takes a string as parameter and returns true if the

string is a palindrome, if not, it returns false.

Expert's answer

bool Polinome(string st)
{
	for (int i = 0; i < st.length(); ++i)
		if (st[i] != st[st.length() - i - 1])
			return false;
	return true;
}
LATEST TUTORIALS
APPROVED BY CLIENTS