Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions