Professional Documents
Culture Documents
Struktur Dalam Program
Struktur Dalam Program
Struktur Dalam Program
Use a single selection to represent multiple selections (in flowchart and pseudocode)
PSEUDOCODE:
If Case 1 Then
A
Else
If Case 2 Then
B
Else
...
If Case n Then
…
Else
End
FLOWCHART:
Case
1
F
T
Case
A 2
F
T
B
…
Case
n
… End
2. Use a single selection to represent a fixed loop (in flowchart)
Condi
Proses Step
tion T
End
Start
Input n
Val = 1
i=1
Print Val
Start