Question: Please include comments, thank you Q2. (25 marks) Write a user-defined function that takes an integer number and outputs the reverse of that number. Call

Please include comments, thank you Q2. (25 marks) Write a user-defined functionPlease include comments, thank you

Q2. (25 marks) Write a user-defined function that takes an integer number and outputs the reverse of that number. Call the function twice in the main function and test your program with two 3-digits and 4-digits numbers. Example of output: Type an integer number: 345 Output: 543 Type an integer number: 3097 Output: 7903

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!