What is the difference between a while and a do…while loop?


a) The condition of a while is evaluated at the start of the loop; the condition of the do…while is evaluated at the end.
b) The body of a do…while loop is always executed once; the body of a while loop may never be executed.
c) Both a and b
d) There is no difference.

c) Both a and b

Computer Science & Information Technology

You might also like to view...

Dial-up computer networks, such as CompuServe, Prodigy, and America Online, typically charged some combination of monthly fee and hourly access fee

Indicate whether the statement is true or false

Computer Science & Information Technology

The programming language to write computer programs within the Microsoft Windows environment is called ________

Fill in the blank(s) with correct word

Computer Science & Information Technology