Computer Science, asked by stainsjackson, 6 months ago

Which of the following statements will make a repetition construct?

(a) If (b) if –else (c) for (d) while​

Answers

Answered by tishabadgujar
3

Explanation:

(c) for ,(d) while. this is write

Answered by Jasleen0599
2

Option :( (c) for (d) while​ )both

the following statements will make a repetition construct:

  • Both are condition-controlled, which means that they keep looping up until a certain condition is satisfied. While loops and do-while loops alternate between carrying out activities and checking if the program has stopped.
  • A while loop, often known as an if statement, is typically used to repeat an activity until a specific condition is met. When you wish to iterate across an object, you use a for loop.
  • Use of a for loop is advised if the number of iterations is fixed. Use of the while loop is advised if the number of iterations is not fixed. It is advised to use a do-while loop if the number of iterations is not fixed and you must run the loop at least once.

#SPJ3

Similar questions