if nested loop outer loop is executed first true or false
Answers
Answered by
1
the answer is true
this will help you
this will help you
Answered by
3
Answer:
True.
If nested loop, the outer loop is executed first and the inner loop terminates first.
Explanation:
- A loop inside the body of another loop is called a nested loop.
- A nested loop is used when functioning of a loop is to be repeated a number of times.
- For a value of outer loop's control variable, the inner loop completely repeats ; then the outer loop updates its control variable's value and the inner loop repeats again for new value of outer loop's control variable.
- Loops can be labelled.
Similar questions