What is accumulator in java? With examples.
Answers
Answered by
1
Answer:
An accumulator is a variable that the program uses to calculate a sum or product of a series of. values. A computer program does this by having a loop that adds or multiplies each successive. value onto the accumulator
Similar questions