Question: c++ Lab task 2: Programming Instruction Create a C++ program that will solve the given programming problems below. Programming Problem 1 - File Name: Palindrome.cpp
Lab task 2: Programming Instruction Create a C++ program that will solve the given programming problems below. Programming Problem 1 - File Name: Palindrome.cpp Note: Solve this problem using While Loop statement. Description: Create a program that will check if a number is palindrome or not. A number is palindrome, if number remains same after reversing its digits. For Example 432234 is palindrome number, but 54321 is not a palindrome number. This program first takes a number as input from the user. Then, to check whether a number is palindrome or not, we reverse the digits of number and then compare it with original number. If original number and its reverse are the same, then number is palindrome otherwise not a palindrome. . Algorithm to check a number is palindrome or not Take a number as input from user and store it in an integer variable (Let's call it inputNumber). Reverse the digits of inputNumber. and store it in another integer variable (let's call it reverseNumber). Compare inputNumber and reverse Number If both are equal, then inputNumber is palindrome otherwise not palin ome. Input Format: The program will prompt the user to enter and must ville
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
