xczapien3718 xczapien3718 17-06-2024 Computers and Technology Answered How do you accumulate a value in a loop? Assume these two variables have been declared before the loop. double input =0.0; double sum =0.0; a. sum += input; b. sum=input; c. input = input + sum; d. sum = sum + input;