The idea behind the do-while loop is that the program will continue to execute a block of
Fantastic news! We've Found the answer you've been seeking!
Question:
The idea behind the do-while loop is that the program will continue to execute a block of code as long as the condition of the while loop is true, however because the condition is evaluated after the body of the loop, the body of the loop is guaranteed to execute one time, even if the condition is false. Can you think of a practical industry example where a do while loop would be used because you want the body of the loop to execute one time even if the condition is false. Explain this example based upon your understanding of do-while loops.
Related Book For
International Marketing And Export Management
ISBN: 9781292016924
8th Edition
Authors: Gerald Albaum , Alexander Josiassen , Edwin Duerr
Posted Date: