The process of repeating or doing same task many times until the given condition is true is called looping or iteration. There are different looping statements are used in QBASIC such as FOR ... NEXT, WHILE .... WEND, DO ... LOOP, etc. It allows a specified group of statements to be executed a certain number of times while certain condition is true. Among these looping statements FOR ... NEXT is the most common and popular looping statement.
Types of Loops in QBASIC