Answer:
D
Explanation:
took test failed question D is the right answer
Answer:
#include <iostream>
#include <string>
using namespace std;
bool isPalindrome(string str)
{
int length = str.length();
for (int i = 0; i < length / 2; i++)
{
if (tolower(str[i]) != tolower(str[length - 1 - i]))
return false;
}
return true;
}
int main()
{
string s[6] = {"madam", "abba", "22", "67876", "444244", "trymeuemyrt"};
int i;
for(i=0; i<6; i++)
{
//Testing function
if(isPalindrome(s[i]))
{
cout << "\n " << s[i] << " is a palindrome... \n";
}
else
{
cout << "\n " << s[i] << " is not a palindrome... \n";
}
}
return 0;
}
I need more details to your question
Answer:
Outdoors
Explanation:
Construction workers perform outdoors.