Presentation is loading. Please wait.

Presentation is loading. Please wait.

Selection Process If … then … else.... Condition Process 2 Process 1 Y.

Similar presentations


Presentation on theme: "Selection Process If … then … else.... Condition Process 2 Process 1 Y."— Presentation transcript:

1 Selection Process If … then … else...

2 Condition Process 2 Process 1 Y

3 Condition Process 1 Process 3 N

4 Condition Process 2 Process 1 Process 3 Y (then) N (else) If … then … else...

5 n>=0 Y Readln(n) Writeln(‘Positive’) Readln(n); If n >= 0 then Writeln(‘Positive’)

6 n>=0 N Readln(n) Writeln(‘Negative’) else Writeln(‘Negative’)

7 n>=0 Y Readln(n) Writeln(‘Positive’) N Writeln(‘Negative’) Readln(n); If n >= 0 then Writeln(‘Positive’) else Writeln(‘Negative’);

8 Selection Process If … then …

9 Condition Process 2 Process 1 Y If (Condition is T) then Process 2

10 Condition Process 1 N Process 2 If (Condition is T) then Process 2


Download ppt "Selection Process If … then … else.... Condition Process 2 Process 1 Y."

Similar presentations


Ads by Google