Formula: avg = 0.5 * (a + b) Example input: a=2.0, b=6.0 Example output: avg=4.0
| 653 | // Example input: a=2.0, b=6.0 |
| 654 | // Example output: avg=4.0 |
| 655 | double average_pair(double a, double b) { |
| 656 | return half_value(a + b); |
| 657 | } |
| 658 | |
| 659 | // Formula: v_sum = a + b + c |
| 660 | // Example input: a=1.0, b=2.0, c=3.0 |
no test coverage detected