When to use what type of repetition in a program<\/span><\/p>\n A repetition statement (or\u00a0<\/span>the looping statements<\/strong>\u00a0or\u00a0<\/span>loops<\/strong>) enables the program to repeat an action as long as a particular set condition remains true. Its form goes as follow, \u201cAs long as you are at school, I will continue to pay your allowances\u201d. This means that the action of paying you allowances will be done over and over again on condition that you go to school, but if you finish or drop out of school, you will have to fend for yourself. There are three types of repetition (loop) statements. They include the\u00a0<\/span>while,do.....while<\/tt>\u00a0and\u00a0<\/span>for loop statements<\/tt><\/p>\n #TC<\/a>1017 #Mastery<\/a>22<\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":" When to use what type of repetition in a program<\/span><\/p>\n A repetition statement (or <\/span>the looping statements<\/strong> or <\/span>loops<\/strong>) enables the program to repeat an action as long as a particular set condition remains true. Its form goes as follow, “As long as you are at school, I will continue to pay your allowances”. This means that the action of paying you allowances will be done over and over again on condition that you go to school, but if you finish or drop out of school, you will have to fend for yourself. There are three types of repetition (loop) statements. They include the <\/span>while,do.....while<\/tt> and <\/span>for loop statements<\/tt><\/p>\nwhile Repetition Statements<\/h3>\n
do..while statement<\/h3>\n
for loop statement<\/h3>\n
while Repetition Statements<\/h3>\n
do..while statement<\/h3>\n
for loop statement<\/h3>\n