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, 22.06.2019 00:00
Which requirement is an appropriate reason for a business to use it tools
Answers: 3
question
Computers and Technology, 22.06.2019 03:40
Mary's manager told her she should insert a graphic into her documentwrite mary a brief note describing how to insert a graphicin a word processing document.
Answers: 1
question
Computers and Technology, 22.06.2019 16:30
Corey set up his presentation for delivery to his team.the information he had to convey was critical to their job performance.he knew he would need a lot of time to explain each point
Answers: 3
question
Computers and Technology, 22.06.2019 22:30
Which of the following factors would your hypothetical supervisor look at when deciding whether to test a biological material sample for dna? the amount of other evidence you have implicating a suspect in a crime the annual budget for the crime lab both of the above none of the above; you would almost always order a test
Answers: 3
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
Questions on the website: 13722367