Question: Loops: 1. What is the difference between for, while, and do/while loops? Come up with examples of scenarios where each kind of loop is the



Loops: 1. What is the difference between for, while, and do/while loops? Come up with examples of scenarios where each kind of loop is the best fit. 2. Write a loop that will print out every multiple of 15 less than 158 and greater than 0 , and explain/justify why you picked the type of loop you did. 3. What is the output of the following code? int count =1, num =25; while (count i;j) cout "Nesting" endl; 6. How many times will the following loop display play game? int check =1; do \{ \} while (check ==1 ); 7. How many times will the following loop display Loop? int i=7,j=3; while (i>++j) cout "Loop" endl; Midterm Review: T/F: 1. Suppose a,b,c, and d are integers, then if (! (a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
