Question: Your task is to write a program that has a function. It should have these general characteristics: The program should not be longer than 30
Your task is to write a program that has a function. It should have these general characteristics:
The program should not be longer than 30 lines. This should be a small task, nothing fancy.
The program must contain a function.
The task of the function is to be passed in a minimum of two variables and to change their value within the function.
The main program will declare the variables (not global variables) and initialize them to some starting value, call the function, and print out the values of the variables after the function.
You will need to have a prototype of the function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
