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 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
Get step-by-step solutions from verified subject matter experts
