How are the "continue" and "break" statements different from the "exit" and "return" statements?
Explain with some examples.
2.Using a for loop, write a few lines of code to calculate the product of the numbers 1 through and including 10.
Don't forget to initialize any variables needed!
3.Let's discuss how to figure out how many times a loop will execute its body.
Give an example of a count controlled loop structure,
explain how you determine the number of times it will execute its body.
How will you determine the number of times a conditional controlled loop with a sample input set executes its body?
4.How will you determine the number of times a conditional controlled loop with a sample input set executes its body?
5.Using a while loop, write a few lines of code to multiply a series of integers provided by a user (cin).The user will enter a value of 0 to indicate they are finished entering values.
Don't forget to declare and initialize any variable you need.
6.the different types of repetition situations and how they are controlled. Let's start out by discussing some simple example problems where you see the need for repetition. Is the repetition in your example count controlled, or would it be controlled by some sort of condition? Which type of loop would you choose for your example and why?