Parameters and Return Values
Parameters pass inputs into a function, and a return value carries the computed result back to the caller.
cpp
double average(double left, double right) {
return (left + right) / 2.0;
}