Which of the following statements will make a repetition construct?
(a) If (b) if –else (c) for (d) while
Answers
Answered by
3
Explanation:
(c) for ,(d) while. this is write
Answered by
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
Hindi,
3 months ago
India Languages,
3 months ago
Biology,
3 months ago
Math,
6 months ago
English,
6 months ago
Science,
11 months ago
Computer Science,
11 months ago
Math,
11 months ago