Looping pada BASIC

Adapun bentuk-bentuk putaran proses adalah sebagai berikut:

1.DO UNTIL Kondisi
Blok Pernyataan
LOOP

2.DO
Blok Pernyataan
LOOP UNTIL Kondisi

3.DO WHILE Kondisi
Blok Pernyataan
LOOP

4.DO UNTIL NOT Kondisi
Blok Pernyataan
LOOP

5.WHILE
Blok Pernyataan
WEND

6.DO
Blok Pernyataan
LOOP WHILE Kondisi

Catatan:

Keluar dari LOOPING:
EXIT LOOP
EXIT WHILE
EXIT FOR
EXIT IF
EXIT SELECT
EXIT DEF
EXIT SUB

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s