Question: Question 1: reverse() (2 points) Write a function named reverse() that takes a number (as a string) as a function parameter and prints that number


Question 1: reverse() (2 points) Write a function named reverse() that takes a number (as a string) as a function parameter and prints that number in reverse. Function Specifications: Name: reverse() Parameters (Please Follow the same Order): number (string) - Number to be reversed Return Value: None Example Function Call: reverse ("1234567890"); The function should print the number in reverse. The function should receive the user input as the function parameter. Sample Run 1 (Text in Bold is User Input to be passed as Function Parameter) reverse ("1234567890") 0987654321 Sample Run 2 (Text in Bold is User Input to be passed as Function Parameter) reverse ("04022021") 12022040 The file should be named as reverse.cpp. Once you have tested your code on VS Code, then head over to coderunner on Canvas and paste only your function in the answer box
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
