kcse1998 more answers

WHILE ... DO

posted Jul 30, 2014, 10:07 PM by Maurice Nyamoti

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.

1-1 of 1