Use a while-loop when the number of iterations is not known


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

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Use a while-loop when the number of iterations is not known
Reference No:- TGS01243752

Expected delivery within 24 Hours