Question: 3. Write a definite while loop that initializes a loop control variable named decreaseOne to 10 and continues until decreaseOne > 0. Decrement the

3. Write a definite while loop that initializes a loop control variable

3. Write a definite while loop that initializes a loop control variable named decreaseOne to 10 and continues until decreaseOne > 0. Decrement the loop control variable by 2 and include the display output "keep going" within the loop. How many times will the loop be executed?. 4. Loop control variables can be evaluated at the start or the end of the loop. Describe both pretest loops and posttest loops (and give code examples and expected output). How are the do . . . while loops execute?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!