Computer Science, asked by nupurkandu, 8 months ago

Two example of loop blocks ?​

Answers

Answered by VivekGawar
2

Answer:

Flexibility: what if we wanted to change the start number or end number? We would have to go through and change them, adding extra lines of code where they're needed.

Scalability: 10 repeats are trivial, but what if we wanted 100 or even 1000 repeats? The number of lines of code needed would be overwhelming for a large number of iterations.

Answered by mpaahir656
0
For example, when you are displaying number from 1 to 100 you may want set the value of a variable to 1 and display it 100 times, increasing its value by 1 on each loop iteration.

Ok
Similar questions