expand icon
book C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith cover

C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith

Edition 8ISBN: 978-1285867410
book C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith cover

C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith

Edition 8ISBN: 978-1285867410
Exercise 34
Using a do while Loop
In this exercise, you use what you have learned about do while loops. Study the following code, and then answer Questions.
const int NUM_TIMES = 3;int counter = 0;do{counter++;cout ? "Strike " ? counter ? endl;}while(counter
Is the output different if you change the order of the statements in the body of the loop, so that counter++ comes after the output statement?
Explanation
Verified
like image
like image

blured image
, the output differs when changing ord...

close menu
C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith
cross icon