Write a program that takes a sentence as an input using a di

Write a program that takes a sentence as an input (using a dialog box) and checks whether that sentence is a palindrome. A palindrome is a word, phrase, or sentence that is symmetrical; that is, it is spelled the same forward and backward. Examples are \"otto,\" \"mom,\" and \"Able was I ere I saw Elba.\" Your program should be case sensitive; that is, \"Otto\" should also be counted as a palindrome.

Solution

Please find the required program along with its output. Please see the comments against each line to understand the step.

------------------------------------------------------------------------------------

OUTPUT:

The sentence is palindrome.

Write a program that takes a sentence as an input (using a dialog box) and checks whether that sentence is a palindrome. A palindrome is a word, phrase, or sent

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site