Maddox Smith Staff asked 4 years ago

The Number of Iterations

Your program should conform to the following constraints.   ·         Use a while-loop when the number of iterations is not known before loop execution.   ·         Use a for-loop when the number of iterations is known before loop execution.   ·         Indent your code correctly to aid readability and use a consistent curly bracket placement scheme.   ·         Use white space to make your code as readable as possible.                                  ·         Validation of input should be limited to ensuring that the user has entered values that are within correct bounds. You do not have to check that they have entered the correct data type.   Comment your code appropriately