subject

Write a c++ program to check user input string is a palindrome. a palindrome can be defined as "a word, phrase, or sequence that reads the same backward as forward, e. g., madam or nurses run." hint: use of the getline function for acquiring user input string with space. use of string class function and operator to get the length and specific position of char.
reference:
#include
#include
using namespace std;
int main()
{
string msg;
getline(cin, msg);
for(int i=0; i
cout < < msg[i];
return 0;
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Which of the following statements correctly identifies a problem with sanitization methods? a. methods are not available to remove data ensuring that unauthorized personnel cannot retrieve data.b. even fully incinerated media can offer extractable data.c. personnel can perform sanitization steps improperly.d. stored data is physically etched into the media.
Answers: 1
question
Computers and Technology, 23.06.2019 04:40
The narrative structure of the popular movies can be broken down into
Answers: 3
question
Computers and Technology, 24.06.2019 13:30
Which type of excel chart should be used to track students’ progress on test grades? line column bar pie
Answers: 2
question
Computers and Technology, 24.06.2019 16:00
What is a dashed line showing where a worksheet will be divided between pages when it prints? a freeze pane a split box a page break a print title
Answers: 1
You know the right answer?
Write a c++ program to check user input string is a palindrome. a palindrome can be defined as "a wo...
Questions
question
Mathematics, 11.06.2021 21:00
question
Mathematics, 11.06.2021 21:10
question
Mathematics, 11.06.2021 21:10
question
Mathematics, 11.06.2021 21:10