In this task you will take any word as string, print it in reverse order and tell whether the string is palindrome or not. The length of string is NOT fixed. The user can input any word of his/her choice Note: A palindrome is a type of word play in which a word or phrase spelled forward is the same word or phrase spelled backward.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter7: Characters, Strings, And The Stringbuilder
Section: Chapter Questions
Problem 12RQ
icon
Related questions
Question

use C++ language for loop to perform this task

In this task you will take any word as string, print it in reverse order and tell whether the string is
palindrome or not. The length of string is NOT fixed. The user can input any word of his/her choice
Note: A palindrome is a type of word play in which a word or phrase spelled forward is the same
word or phrase spelled backward.
Sample Output 1:
Enter the string
level
Reversed string is level
string is is palindrome
Sample Output 2:
Enter the string
notlevel
Reversed string is levelton
string is is not palindrome
Transcribed Image Text:In this task you will take any word as string, print it in reverse order and tell whether the string is palindrome or not. The length of string is NOT fixed. The user can input any word of his/her choice Note: A palindrome is a type of word play in which a word or phrase spelled forward is the same word or phrase spelled backward. Sample Output 1: Enter the string level Reversed string is level string is is palindrome Sample Output 2: Enter the string notlevel Reversed string is levelton string is is not palindrome
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Types of Loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT