WHILE ... DO

Post date: 31-Jul-2014 05:07:22

Quiz: using a program flowchart, explain the “WHILE...DO” interaction construction.

WHILE ... DO

Answer: it is a repetitive control structure that is used to carry out conditional looping, i.e. when the numbers of repetitions are not known in advance.

The general formula of the While... Do structure is:

WHILE….

Boolean expression........

Do program statement.