Case structure?
CASE OF tax_code
0 : sales_tax = 0
1 : sales_tax = purch_amt * 0.03
2 : sales_tax = purch_amt * 0.05
ENDCASE3 Jenis Repetition?
DOWHILE
termasuk Leading decision loop. Condition di test dlu baru eksekusi.
Format:
DOWHILE condition p is true
statement block
ENDDO
REPEAT…UNTIL
Format:
REPEAT
statement
statement
UNTILDO
Format:
DO loop_index = initial_value to final_value
statement block
ENDDO
Prinsip structured programming?
one entry point, one exit point