Computer Science, asked by netri2603, 6 months ago

which programming construct is used to repeat a block of code when the number of iterations is known in advance.​

Answers

Answered by rohanudhwani2
3

Answer:

for loop

Explanation:

for n in range(100)

Answered by sourasghotekar123
0

Answer:

A count-controlled loop

Explanation:

  • When the anticipated number of iterations is known, a count-controlled loop is utilised.
  • Programs can iterate or "loop" in one of two ways:
  • conditional loops and count-controlled loops
  • Each kind of loop operates somewhat differently and yields various outcomes.
  • Loops with a count limit
  • Steps may occasionally need to be repeated a certain number of times.
  • Because it utilises a counter to keep track of how many times the algorithm has iterated, a count-controlled loop gets its name.
  • The algorithm's iteration count is recorded using the variable "count." The loop is managed by this variable. The algorithm will keep running till the count number reaches 5. When the count hits 5, the algorithm ends its iterative process.

#SPJ6

Similar questions