Question: C++ Write a program to take a 4 digit integer number from user and do the following following operations on it. 1. Reverse the number.

C++

Write a program to take a 4 digit integer number from user and do the following following operations on it.

1. Reverse the number. (Ex. If input is 1234, output should be 4321)

2. Add every digit of the number and print the addition. (Ex. If input is 1234, output should be 10)

3. Multiply each digit of the number and print the multiplication result. (Ex. If input is 1234, output should be 24)

4. Check whether the input number is palindrome or not. (Ex. If input is 1221, output should be "Number is Palindrome")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!