in a nested loop the inner loop must be executed before the outer loop.? true or false
Answers
Answered by
3
Answer:
Yes
Explanation:first the inner Loop will be executed and the outer Loop is executed
Answered by
1
“In a nested loop the ‘inner loop’ must be executed before the outer loop” is a FALSE statement.
Explanation:
- A nested loop can be defined as a loop present inside another loop. The working of a ‘nested loop’ is that the 1st pass of the ‘outer loop’ would trigger the insider (inner loop).
- Then it executed to completion. Then the 2nd pass will be happened where again the outer loop trigger the inner loop.
- This process will be repeated again and again until the ‘outer loop’ finishes its condition. But if we include a ‘break’ statement, then the loop will be interrupted.
Learn more about nested loop
Write a program using nested loop to produce a rectangle of *'s with 6 rows and 20 *'s per row in python
https://brainly.in/question/12710264
Write programs using nested loop to display the following patterns:- 5
54
543
5432
54321
https://brainly.in/question/2382879
Similar questions