Question: Write a while loop with a counter i that starts at 0 and continues to loop as long as the counter is less than 10.
Write a while loop with a counter i that starts at 0 and continues to loop as long as the counter is less than 10. Within the loop, check to see if the counter is greater than 5, and less than 8. If both of those statements are true, log the value of i to the console.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
