Download presentation
Presentation is loading. Please wait.
Published byTalia Waldren Modified over 10 years ago
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.