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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started