Question: How to construct this program? Exercise 5.4 Palindrome Write a program to read a positive integer number n. Using WHILE loop to finish this question.
How to construct this program?

Exercise 5.4 Palindrome Write a program to read a positive integer number n. Using WHILE loop to finish this question. If n is a palindrome, print 'YES', otherwise, print "NO'. Sample Test Cases: Input Expected output YES 10 NO 101 YES 123 NO 12321 YES 111111 YES
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
