expand icon
book Programming Logic and Design, Introductory 7th Edition by Joyce Farrell cover

Programming Logic and Design, Introductory 7th Edition by Joyce Farrell

Edition 7ISBN: 1285225562
book Programming Logic and Design, Introductory 7th Edition by Joyce Farrell cover

Programming Logic and Design, Introductory 7th Edition by Joyce Farrell

Edition 7ISBN: 1285225562
Exercise 22

When loops are nested, __________ .

a. they typically share a loop control variable

b. one must end before the other begins

c. both must be the same type—definite or indefinite

d. none of the above

Step-by-step solution
Verified
like image
like image

Step 1 of 8

When nested loops are created, each loop will contain its own loop control variable.

So, the control variable cannot be shared with the other loop.


Step 2 of 8


Step 3 of 8


Step 4 of 8


Step 5 of 8


Step 6 of 8


Step 7 of 8


Step 8 of 8

close menu
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
cross icon