Qb64 Programming Statements II
Qb64 Programming Statements II
PROGRAMMING
STATEMENTS II
YEAR 7
MARIEM KHLIFI
3
LOOPs
The following loops are available in QB64:
DO WHILE ....
FOR .....NEXT
DO UNTIL ....
LOOP WHILE .... WEND
4
FOR... NEXT
• The FOR ....NEXT structure is used when you want to perform a
specific number of times.
• It uses a counter variable which is incremented or decremented with
each repetition of the loop
5
Program1: to print multiples of
5 from 0 to 30
Open QB64 software and write the following program
7
Program2: to print numbers 1 to 10
9
Program3: to print numbers 1 to 9
13