Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question:3 Write the int reverse (int num) function whose input a an integer and whose output is the number reversed. For example, if the input
Question:3 Write the int reverse (int num) function whose input a an integer and whose output is the number reversed. For example, if the input is 1367 then the output is 7631. Hint: use Modulus operator Write a main, to prompt for an integer and then call your function to reverse the number and then print out both numbers. The number must be at least 6 characters long (e.g. 123456) but your program should handle any number length. Question4 Use your code from question 3 to determine if user's input (integer number) is palindrome or not. For example, if the input is 12321 then this number is a palindrome Also, 1221 is palindrome, but not 12324. Write a separate function for this task
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started