what are counters and accumulators in Qbasic? write their importance
Answers
Answered by
5
Answer:
Accumulator variable
It is similar to the counter. It is initialized to zero and is incremented in each repetition with different values. ... For this, a counter is used to control the number of times we ask the user for numbers and an accumulator to calculate the sum of the 5 numbers
Explanation:
please mark me as brainlist
Answered by
4
Answer:
Accumulator Variable
Explanation:
It is initialised to zero and is incremented in each repitition with different values .This program asks the user for 5 numbers and returns the sum. For this ,a counter is used to control the number of times we ask the user for number and an accumulator to calculate the sum of the numbers.
Similar questions
Environmental Sciences,
2 months ago
Math,
2 months ago
Social Sciences,
2 months ago
Physics,
11 months ago
Math,
11 months ago
Math,
11 months ago