
C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith
Edition 8ISBN: 978-1285867410
C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith
Edition 8ISBN: 978-1285867410 Exercise 35
Using a Counter-Controlled while Loop
In this exercise, you use what you have learned about counter-controlled loops. Study the following code, and then answer Questions.
Remember that number2 += number1; is the same as number2 = number2 + number1;.int number1 = 0;int number2 = 0;while(number1 6)number1++;number2 += number1;
What is the value of number1 when the loop exits?
In this exercise, you use what you have learned about counter-controlled loops. Study the following code, and then answer Questions.

Remember that number2 += number1; is the same as number2 = number2 + number1;.int number1 = 0;int number2 = 0;while(number1 6)number1++;number2 += number1;
What is the value of number1 when the loop exits?
Explanation
Counter-controlled while loop:
In a whi...
C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith
Why don’t you like this exercise?
Other Minimum 8 character and maximum 255 character
Character 255