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;
}
D pad or rb or lb hop this helps
Answer:
Abolition of intermediaries (rent collectors under the pre-Independence land revenue system); Tenancy regulation (to improve the contractual terms including the security of tenure); A ceiling on landholdings (to redistributing surplus land to the landless);
Answer:
Combination circuit; The basic strategy for the analysis of combination circuits involves using the meaning of equivalent resistance for parallel branches to transform the combination circuit into a series circuit.
Example:
The use of both series and parallel connections within the same circuit. In this case, light bulbs A and B are connected by parallel connections and light bulbs C and D are connected by series connections. This is an example of a combination circuit.