Advertisements
Advertisements
Questions
State one similarity between while loop and do-while loop.
What is the similarity between while and do-while loop?
Answer in Brief
Solution
- The purpose of both loops is to repeatedly run a series of statements.
- In order to end the loop, both loops examine a logical condition.
shaalaa.com
Is there an error in this question or solution?
Chapter 1.09: Iterative Constructs in Java - EXERCISES [Page 124]