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

النسخة 8الرقم المعياري الدولي: 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

النسخة 8الرقم المعياري الدولي: 978-1285867410
تمرين 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?
التوضيح
موثّق
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