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.
HTML uses tags to help the computer know what different pieces of content in the web page actually are. Right now we've only learned how to tell the computer that some text is a paragraph, or that part of your website is the body. We've already seen how that affects the way our web pages look and are structured.
(I don't know how it should be organized, but hope this helped)
Answer:
focuses on a certain subject
Explanation:
it means that it focuses on that one subject and none others
Hope it helps c:
<b></b> <span>element when used to strongly emphasize portions of text within a document.
<p></p> </span><span>tag defines a paragraph.
<ol></ol> </span><span>Defines an ordered list
<a></a> </span><span> tag defines a hyperlink</span>
Answer:
Explanation:
Part a)
_______________ ____________ _____________ ___
TAR | /\ \/ /\ \/ /\
|//////////|____________|____________|_____________|__________|
0 600 800 600 800 600
PWM Duty Cycle = 200/800 = 25%
Part b)
______________ _________________ _________ _________________
TAR | \/ /\ \/ /\ \/
|//////////|_________|_________________|__________| _______________|
0 600 800 600 800 600
PWM Duty Cycle = 600/800 = 75%