The following function intends to sum the integers given a m…
The following function intends to sum the integers given a minimum/maximum value. For example, calling the function with (1,4) results in 1+2+3+4 -> 10.What, if anything, is wrong? #include int sum_range(int low, int high){ int s = 0; for(int i = low; i < high; i++) s += i; return s;}int main() { std::cout
Read Details