Computer Science, asked by rt013850, 3 months ago

which of the following loops is used when a group of statements is to be executed a specific number of times?​

Answers

Answered by zobiyasayyed
2

Explanation:

It repeats a group of statements a specified number of times and a loop index counts the number of loop iterations as the loop executes.

Answered by Anonymous
1

Answer:

For loop is the used for iteration for fixed number of times. The syntax is,

for(initialize;condition;increment);

example:

for(int i=0;i<10;i++)

For the above syntax the for iteration is carried out for 10 times since the first iteration starts with value as 0 and iterates until the i value is less than 10, i.e., 9. Once the condition i<10 fails then the loop terminates.

Explanation:

Similar questions