The function is written in C++ programming language and is be displayed below:
long OutputVal(int start, int end) {
long result = 1;
for (int num = start; num <= end; num++) {
result *= num;
}
return result;
}
The program defines a function Output Value(), takes two integer parameters, and outputs the sum of all negative integers starting with the first and ending with the second parameter.
Read more about C++ here:
https://brainly.com/question/20339175
#SPJ1