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 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
Get step-by-step solutions from verified subject matter experts
