Question: Write a program in C that creates three variables of type double named v1, v2, v3 and asks the user for three double values that
Write a program in C that creates three variables of type double named v1, v2, v3 and asks the user for three double values that will be stored in the variables.
Declare and write a function named twice that will double each of the values of v1, v2, and v3 in main every time it is called. The function has no return value and should be called three times.
Finally, output to the screen the values of v1, then v2, then v3 in main on separate lines. Declare any other variables and pointers as needed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
