Question
Each of the following functions has errors. Locate as many errors as you can.double average(int value1, int value2, int value3){double average;average = value1 + value2 + value3 / 3;}
Step 1
The function is declared to return a `double`, but there is no return statement in the function. This is an error because the function must return a value of the specified type. Show more…
Show all steps
Your feedback will help us improve your experience
Watch the video solution with this free unlock.
EMAIL
PASSWORD