In these structure what is the function or how is the inner
In these structure what is the function or how is the inner loop used?
OuterLoop OuterLoop 2 InnerLoop = 0 InnerLoop 3 Repeat Print OuterLoop, IhnerLoap Print OuterLoop InnerLoop False Untl InnerLoop > 3 True OuterLoop OutbrLoop Solution
In the first diagram:
Outtpuer loop is initialized to 1
Condition is < 2 Incremented by 1 each time
Inner loop is initialized to 1
Condition is < 3 Incremented by 1 each time
Prints Outter and Inner loop value
Running output
Outer Loop: 1 Inner Loop: 1
Outer Loop: 1 Inner Loop: 2
In the 2nd diagram:
Outtpuer loop is initialized to 1
Condition is < 2 Incremented by 1 each time
Inner loop is initialized to 0
Repeats till innervalue is not >= 3
Increments the inner loop value by 1
Prints Outter and Inner loop value
Outer Loop: 1 Inner Loop: 1
Outer Loop: 1 Inner Loop: 2
Outer Loop: 1 Inner Loop: 3
