The number of iterations refers to the number of times the condition is met (true/false)
Answers
Answered by
9
True will be the answer.
Answered by
2
The number of iterations refers to the number of times the condition is met: False
Reason : Because in do-while the loop will iterate at least once even if the condition is not satisfied.
Types of Iteration :
- for
- while
- do while
1) for
for (initialization ; condition ; update)
{
// body
}
2) while
initialization;
while (condition)
{
// body
update;
}
3) do while
initialization;
do
{
// body
update;
}
while (condition);
Similar questions