Computer Applications
Give two differences between do-while and while loop
Java Iterative Stmts
15 Likes
Answer
do-while | while |
---|---|
do-while is an exit-controlled loop | while is an entry-controlled loop |
do-while is suitable when we need to display a menu to the user. | while loop is helpful in situations where numbers of iterations is not known. |
Answered By
10 Likes
Related Questions
Fill in the blanks:
A constant which gives the exact representation of data is called _________
What is the difference between / and % operator?
What does the following statement mean?
Employee staff = new Employee ( );
What do you understand by primitive and non-primitive data types? Give an example of each.