93.9k views
2 votes
true/false: you can nest a for loop inside another for loop, but cannot nest a while loop inside another while loop or a do-while loop inside another do-while loop.

User Manne W
by
8.4k points

1 Answer

3 votes

Answer:

False. You can nest a while loop inside another while loop, and a do-while loop inside another do-while loop, just as you can nest a for loop inside another for loop.

User Dhaivat Pandya
by
7.9k points