Answer:
#include <bits/stdc++.h>
using namespace std;
bool isPalindrome(string str)
{
char a,b;
int length = str.length();
for (int i = 0; i < length / 2; i++)
{
a=tolower(str[i]);//Converting both first characters to lowercase..
b=tolower(str[length-1-i]);
if (b != a )
return false;
}
return true;
}
int main() {
string t1;
cin>>t1;
if(isPalindrome(t1))
cout<<"The string is Palindrome"<<endl;
else
cout<<"The string is not Palindrome"<<endl;
return 0;
}
Output:-
Enter the string
madam
The string is Palindrome
Enter the string
abba
The string is Palindrome
Enter the string
22
The string is Palindrome
Enter the string
67876
The string is Palindrome
Enter the string
444244
The string is not Palindrome
Explanation:
To ignore the cases of uppercase and lower case i have converted every character to lowercase then checking each character.You can convert to uppercase also that will also work.
Answer:
The invention of flashlight is associated in the late period of industrial revolution.
Explanation:
- During the industrial revolution, Europe and United States flipped the use or technology in the manufacturing processes of industries.
- At the time of industrial revolution many chief inventions like, steam engine, dynamites etc. were made that the traditional history and reformed the technology.
- Thomas Edison in 1879, invented the battery and flashlight at the late period of industrial revolution which was also a major invention
Answer:
Please look below for the answer
Explanation:
The primary limitation is that they don’t protect in real time. They also only perform quick scans which is not that efficient. They cannot scan the Windows directory. They only install on 64-bit operating systems
Hope I helped pls mark as brainliest
Answer:
Hangman is game which can be played with a pencil or pen and a paper. It is a multiplayer game which requires minimum two players. It is a guessing game, in which a player thinks of a word or a phrase and other player or players tries to guess it correctly, letter by letter or whole word or phrase at once, in a certain number of guesses.
In this game, the word to be guessed is represented by dashes. If the guessed word or letter is correct, the player fills the blank spaces. But if the guessed word or letter is wrong, the player draws an element of a hanged man stick figure one by one as a tally mark.
This game ends if the player who is guessing guesses the word or the phrase correctly and the guesser wins; or if the player guesses enough wrong letters of phrases that the other player finishes the drawing of the hangman and the guesser loses.