Computer Science, asked by kumerrico1316, 6 days ago

what is counter and looping?​

Answers

Answered by smarty928
0

Answer:

Loop counters change with each iteration of a loop, providing a unique value for each individual iteration. The loop counter is used to decide when the loop should terminate and for the program flow to continue to the next instruction after the loop.

Answered by nazhashim01
0

Answer:

In software engineering, a loop counter is the variable that controls the iterations of a loop. It is so named because most uses of this construct result in the variable taking on a range of integer values in some orderly sequence Loop counters change with each iteration of a loop, providing a unique value for each individual iteration. The loop counter is used to decide when the loop should terminate and for program flow to continue to the next instruction after the loop. A common identifier naming convention is for the loop counter to use the variable names i, j, and k, where i would be the most outer loop, j the next inner loop, etc. The reverse order is also used by some programmers. This style is generally agreed to have originated from the early programming of FORTRAN, where these variable names beginning with these letters were implicitly declared as having an integer type, and so were obvious choices for loop counters that were only temporarily required.

Explanation:

Similar questions