Question: c++ 1. Name your file WS13a.cpp. Write a function that takes an integer and reverses the digits. The function returns the reversed number to main.

c++ c++ 1. Name your file WS13a.cpp. Write a function that takes an

1. Name your file WS13a.cpp. Write a function that takes an integer and reverses the digits. The function returns the reversed number to main. Here is the prototype for this function. Write main() to test this function. Use only int data type and arithmetic to solve this problem. No chars or strings please. int reverseNum (int num)

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!