You are on page 1of 3

1.

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

3. Describe a flowchart to compute: ∏𝑛𝑖=1 𝑖

Start

Input n

Val = 1

i=1

i>n Val = Val * i i=i+1


F

Print Val

Start

You might also like